mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Huawei: Fix altitude in the GPS parser
This commit is contained in:
+2
-3
@@ -89,9 +89,8 @@ public class HuaweiGpsParser {
|
||||
point.longitude = (lon / 6383807.0d / Math.cos(lat_start) + lon_start) / 0.017453292519943d;
|
||||
point.altitudeSupported = alt_support;
|
||||
if (alt_support) {
|
||||
// TODO: not sure about this
|
||||
float alt_delta = buffer.getFloat();
|
||||
alt = alt + alt_delta;
|
||||
alt = buffer.getShort();
|
||||
buffer.getShort(); // Unknown values
|
||||
point.altitude = alt;
|
||||
}
|
||||
retv.add(point);
|
||||
|
||||
Reference in New Issue
Block a user