1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-24 16:21:16 +02:00

Bangle.js: ensure GPS speed is reported correctly when the phone is providing it

This commit is contained in:
Gordon Williams 2023-11-29 10:04:33 +00:00
parent ec73b244ee
commit 8ef80a2565

View File

@ -1095,7 +1095,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
o.put("lat", location.getLatitude());
o.put("lon", location.getLongitude());
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());
o.put("time", location.getTime());
if (location.getExtras() != null) {