fix position overide problem with fixedPosition nodes thx @havealoha

1.2-legacy
Kevin Hester 2021-04-15 12:16:56 +08:00
rodzic b2ed20546a
commit c74ee428ed
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -1031,6 +1031,11 @@ class MeshService : Service(), Logging {
desiredInterval = 0
}
if (prefs.fixedPosition) {
info("Node has fixed position, therefore not overriding position")
desiredInterval = 0
}
if (desiredInterval != 0L) {
info("desired GPS assistance interval $desiredInterval")
startLocationRequests(desiredInterval)