changed router to origin

This commit is contained in:
DJ2LS 2023-07-09 09:53:20 +02:00
parent afed031baf
commit 9304b9fb34

View file

@ -264,7 +264,9 @@ class MeshRouter():
data = MESH_QUEUE_TRANSMIT.get()
#print(data)
if data[0] == "PING":
self.add_mesh_ping_to_signalling_table(helpers.get_crc_24(data[2]).hex(), helpers.get_crc_24(data[3]).hex(), status="awaiting_ack")
destination = helpers.get_crc_24(data[2]).hex()
origin = helpers.get_crc_24(data[1]).hex()
self.add_mesh_ping_to_signalling_table(destination, origin, status="awaiting_ack")
else:
print("wrong mesh command")