mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Bangle.js: ensure GPS speed is reported correctly when the phone is providing it
This commit is contained in:
@@ -1095,7 +1095,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
|
|||||||
o.put("lat", location.getLatitude());
|
o.put("lat", location.getLatitude());
|
||||||
o.put("lon", location.getLongitude());
|
o.put("lon", location.getLongitude());
|
||||||
o.put("alt", location.getAltitude());
|
o.put("alt", location.getAltitude());
|
||||||
o.put("speed", location.getSpeed());
|
o.put("speed", location.getSpeed()*3.6); // m/s to kph
|
||||||
if (location.hasBearing()) o.put("course", location.getBearing());
|
if (location.hasBearing()) o.put("course", location.getBearing());
|
||||||
o.put("time", location.getTime());
|
o.put("time", location.getTime());
|
||||||
if (location.getExtras() != null) {
|
if (location.getExtras() != null) {
|
||||||
|
Reference in New Issue
Block a user