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
2024-04-29 15:18:23 -07:00
committed by GitHub

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