From c74ee428ede79dbc765e710ce6c53d12845c666f Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Thu, 15 Apr 2021 12:16:56 +0800 Subject: [PATCH] fix position overide problem with fixedPosition nodes thx @havealoha --- app/src/main/java/com/geeksville/mesh/service/MeshService.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/geeksville/mesh/service/MeshService.kt b/app/src/main/java/com/geeksville/mesh/service/MeshService.kt index 63685c2f..75168f2f 100644 --- a/app/src/main/java/com/geeksville/mesh/service/MeshService.kt +++ b/app/src/main/java/com/geeksville/mesh/service/MeshService.kt @@ -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)