mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-10 12:09:27 +01:00
Bangle.js: ensure GPS speed is reported correctly when the phone is providing it
This commit is contained in:
parent
ec73b244ee
commit
8ef80a2565
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user