mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-27 02:55: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("alt", location.getAltitude());
|
||||||
o.put("speed", location.getSpeed());
|
o.put("speed", location.getSpeed());
|
||||||
if (location.hasBearing()) o.put("course", location.getBearing());
|
if (location.hasBearing()) o.put("course", location.getBearing());
|
||||||
o.put("time", new Date().getTime());
|
o.put("time", location.getTime());
|
||||||
if (location.getExtras() != null) {
|
if (location.getExtras() != null) {
|
||||||
LOG.debug("Found number of satellites: " + location.getExtras().getInt("satellites", -1));
|
LOG.debug("Found number of satellites: " + location.getExtras().getInt("satellites", -1));
|
||||||
o.put("satellites",location.getExtras().getInt("satellites"));
|
o.put("satellites",location.getExtras().getInt("satellites"));
|
||||||
|
Loading…
Reference in New Issue
Block a user