From 51f66f715f50f392d488b46bd89c114fc96133d1 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sat, 27 Mar 2021 17:31:32 +0800 Subject: [PATCH] fix warning --- .../main/java/com/geeksville/mesh/service/MeshService.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 36d3c9d9..f68cbc82 100644 --- a/app/src/main/java/com/geeksville/mesh/service/MeshService.kt +++ b/app/src/main/java/com/geeksville/mesh/service/MeshService.kt @@ -1007,16 +1007,14 @@ class MeshService : Service(), Logging { } private fun setupLocationRequest() { - var desiredInterval = 0L - stopLocationRequests() val mi = myNodeInfo val prefs = radioConfig?.preferences if (mi != null && prefs != null) { var broadcastSecs = prefs.positionBroadcastSecs - desiredInterval = if (broadcastSecs == 0) // unset by device, use default - 15 * 60 * 1000 + var desiredInterval = if (broadcastSecs == 0) // unset by device, use default + 15 * 60 * 1000L else broadcastSecs * 1000L