From 16e91c0ebf214572cd66cf3fb0fb7c886be360f4 Mon Sep 17 00:00:00 2001 From: andrekir Date: Wed, 2 Oct 2024 17:03:36 -0300 Subject: [PATCH] refactor: sync `isOnline` status with firmware (2 hours) --- .../main/java/com/geeksville/mesh/database/entity/NodeEntity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/geeksville/mesh/database/entity/NodeEntity.kt b/app/src/main/java/com/geeksville/mesh/database/entity/NodeEntity.kt index 10d99b88..ab6f8a21 100644 --- a/app/src/main/java/com/geeksville/mesh/database/entity/NodeEntity.kt +++ b/app/src/main/java/com/geeksville/mesh/database/entity/NodeEntity.kt @@ -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) }