kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
fix warning
rodzic
d3556ea9f9
commit
51f66f715f
|
@ -1007,16 +1007,14 @@ class MeshService : Service(), Logging {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupLocationRequest() {
|
private fun setupLocationRequest() {
|
||||||
var desiredInterval = 0L
|
|
||||||
|
|
||||||
stopLocationRequests()
|
stopLocationRequests()
|
||||||
val mi = myNodeInfo
|
val mi = myNodeInfo
|
||||||
val prefs = radioConfig?.preferences
|
val prefs = radioConfig?.preferences
|
||||||
if (mi != null && prefs != null) {
|
if (mi != null && prefs != null) {
|
||||||
var broadcastSecs = prefs.positionBroadcastSecs
|
var broadcastSecs = prefs.positionBroadcastSecs
|
||||||
|
|
||||||
desiredInterval = if (broadcastSecs == 0) // unset by device, use default
|
var desiredInterval = if (broadcastSecs == 0) // unset by device, use default
|
||||||
15 * 60 * 1000
|
15 * 60 * 1000L
|
||||||
else
|
else
|
||||||
broadcastSecs * 1000L
|
broadcastSecs * 1000L
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue