mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-22 14:59:27 -04:00
refactor: sync isOnline status with firmware (2 hours)
This commit is contained in:
@@ -159,7 +159,7 @@ data class NodeEntity(
|
||||
val isOnline: Boolean
|
||||
get() {
|
||||
val now = System.currentTimeMillis() / 1000
|
||||
val timeout = 15 * 60
|
||||
val timeout = 2 * 60 * 60
|
||||
return (now - lastHeard <= timeout)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user