mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 10:35:50 +01:00
bangle.js: Use GPS location time, when reporting gps events, instead of the time at transmission.
This commit is contained in:
parent
2051ce2055
commit
600658d86b
@ -1088,7 +1088,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
|
||||
o.put("alt", location.getAltitude());
|
||||
o.put("speed", location.getSpeed());
|
||||
if (location.hasBearing()) o.put("course", location.getBearing());
|
||||
o.put("time", new Date().getTime());
|
||||
o.put("time", location.getTime());
|
||||
if (location.getExtras() != null) {
|
||||
LOG.debug("Found number of satellites: " + location.getExtras().getInt("satellites", -1));
|
||||
o.put("satellites",location.getExtras().getInt("satellites"));
|
||||
|
Loading…
Reference in New Issue
Block a user