Merge pull request #628 from meshtastic/update-heartbeat

Update heartbeat interval to a fixed 300 seconds
This commit is contained in:
Ian McEwen
2024-07-02 10:01:32 -07:00
committed by GitHub

View File

@@ -715,9 +715,8 @@ class MeshInterface: # pylint: disable=R0902
def callback():
self.heartbeatTimer = None
prefs = self.localNode.localConfig
i = prefs.power.ls_secs / 2
logging.debug(f"Sending heartbeat, interval {i}")
i = 300
logging.debug(f"Sending heartbeat, interval {i} seconds")
if i != 0:
self.heartbeatTimer = threading.Timer(i, callback)
self.heartbeatTimer.start()