mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
update provideLocation feedback
This commit is contained in:
parent
6d53b78007
commit
7a316928be
2 changed files with 23 additions and 16 deletions
|
|
@ -1018,10 +1018,10 @@ class MeshService : Service(), Logging {
|
|||
else
|
||||
broadcastSecs * 1000L
|
||||
|
||||
// if (prefs.locationShare == RadioConfigProtos.LocationSharing.LocDisabled) {
|
||||
// info("GPS location sharing is disabled")
|
||||
// desiredInterval = 0
|
||||
// }
|
||||
if (prefs.locationShare == RadioConfigProtos.LocationSharing.LocDisabled) {
|
||||
info("GPS location sharing is disabled")
|
||||
desiredInterval = 0
|
||||
}
|
||||
|
||||
// if (prefs.fixedPosition) {
|
||||
// info("Node has fixed position, therefore not overriding position")
|
||||
|
|
@ -1033,6 +1033,7 @@ class MeshService : Service(), Logging {
|
|||
startLocationRequests(desiredInterval)
|
||||
} else {
|
||||
info("No GPS assistance desired, but sending UTC time to mesh")
|
||||
warnUserAboutLocation()
|
||||
sendPosition()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue