mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-12 13:09:24 +01:00
add attribute to set the source of the gps signal
This commit is contained in:
parent
d54b7426cc
commit
6e3ce89ae5
@ -990,6 +990,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
|
|||||||
}
|
}
|
||||||
o.put("hdop", location.getAccuracy());
|
o.put("hdop", location.getAccuracy());
|
||||||
o.put("externalSource", true);
|
o.put("externalSource", true);
|
||||||
|
o.put("gpsSource", location.getProvider());
|
||||||
LOG.debug("Sending gps value: " + o.toString());
|
LOG.debug("Sending gps value: " + o.toString());
|
||||||
uartTxJSON("gps", o);
|
uartTxJSON("gps", o);
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user