pull/276/head^2
Kevin Hester 2021-03-27 17:31:32 +08:00
rodzic d3556ea9f9
commit 51f66f715f
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -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