fix(service): set node time after config completion (#2970)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
pull/2976/head
James Rich 2025-09-04 22:14:11 -05:00 zatwierdzone przez GitHub
rodzic f900ff682f
commit 755038219b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -199,7 +199,7 @@ class MeshService :
private const val CONFIG_ONLY_NONCE = 69420
private const val NODE_INFO_ONLY_NONCE = 69421
private const val CONFIG_WAIT_MS = 250L
private const val CONFIG_WAIT_MS = 50L
}
private var previousSummary: String? = null
@ -1750,9 +1750,6 @@ class MeshService :
processQueuedPackets() // send any packets that were queued up
startMqttClientProxy()
serviceBroadcasts.broadcastConnection()
packetHandler.sendToRadio(newMeshPacketTo(myNodeNum).buildAdminPacket { setTimeOnly = currentSecond() }) {
connectionState
}
sendAnalytics()
reportConnection()
}
@ -1825,6 +1822,9 @@ class MeshService :
sendAnalytics()
onNodeDBChanged()
}
packetHandler.sendToRadio(newMeshPacketTo(myNodeNum).buildAdminPacket { setTimeOnly = currentSecond() }) {
connectionState
}
}
/** Start the modern (REV2) API configuration flow */