Skip to content

Commit 21f6e25

Browse files
authored
Merge pull request #561 from ianmcorvidae/use-heartbeat
Use the new Heartbeat payload variant for the heartbeat instead of an empty ToRadio packet
2 parents 9fc86f9 + 243e297 commit 21f6e25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

meshtastic/mesh_interface.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ def callback():
683683
self.heartbeatTimer = threading.Timer(i, callback)
684684
self.heartbeatTimer.start()
685685
p = mesh_pb2.ToRadio()
686+
p.heartbeat.CopyFrom(mesh_pb2.Heartbeat())
686687
self._sendToRadio(p)
687688

688689
callback() # run our periodic callback now, it will make another timer if necessary

0 commit comments

Comments
 (0)