Skip to content

Commit a14cc4f

Browse files
committed
Update heartbeat interval to a fixed 300 seconds
1 parent dc5f592 commit a14cc4f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

meshtastic/mesh_interface.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,9 +715,8 @@ def _startHeartbeat(self):
715715

716716
def callback():
717717
self.heartbeatTimer = None
718-
prefs = self.localNode.localConfig
719-
i = prefs.power.ls_secs / 2
720-
logging.debug(f"Sending heartbeat, interval {i}")
718+
i = 300
719+
logging.debug(f"Sending heartbeat, interval {i} seconds")
721720
if i != 0:
722721
self.heartbeatTimer = threading.Timer(i, callback)
723722
self.heartbeatTimer.start()

0 commit comments

Comments
 (0)