Merge pull request #561 from ianmcorvidae/use-heartbeat

Use the new Heartbeat payload variant for the heartbeat instead of an empty ToRadio packet
This commit is contained in:
Ian McEwen authored and GitHub committed 2024-04-29 15:18:23 -07:00
commit 21f6e25ab0
1 file changed
+1
+1
View File
@@ -683,6 +683,7 @@ class MeshInterface:
self.heartbeatTimer = threading.Timer(i, callback)
self.heartbeatTimer.start()
p = mesh_pb2.ToRadio()
p.heartbeat.CopyFrom(mesh_pb2.Heartbeat())
self._sendToRadio(p)
callback() # run our periodic callback now, it will make another timer if necessary