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:16:04 -07:00
parent 9fc86f9450
commit 243e297505

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