mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix warning
This commit is contained in:
parent
d3556ea9f9
commit
51f66f715f
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue