From 4ba56884478d7b8d9d579f092a9b99df5fe67d41 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Tue, 4 Jul 2023 07:47:39 +0200 Subject: [PATCH] adjusted sending ping ack --- tnc/mesh.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tnc/mesh.py b/tnc/mesh.py index a8a055cc..aa5b05c4 100644 --- a/tnc/mesh.py +++ b/tnc/mesh.py @@ -420,10 +420,9 @@ class MeshRouter(): if destination == Station.mycallsign_crc.hex(): self.log.info("[MESH] [RX] [PING] [ACK]", destination=destination, mycall=Station.mycallsign_crc.hex()) - status = "acknowledged" - self.add_mesh_ping_ack_to_signalling_table(destination, status) + self.add_mesh_ping_ack_to_signalling_table(destination, status="acknowledged") else: - status = "forwarding" + #status = "forwarding" #self.add_mesh_ping_ack_to_signalling_table(destination, status) self.log.info("[MESH] [RX] [PING] [ACK]", destination=destination, mycall=Station.mycallsign_crc.hex()) for _, item in enumerate(MESH_SIGNALLING_TABLE): @@ -433,8 +432,8 @@ class MeshRouter(): break self.add_mesh_ping_ack_to_signalling_table(destination, status="forwarding") - dxcallsign_crc = bytes.fromhex(destination) - self.transmit_mesh_signalling_ping_ack(dxcallsign_crc) + #dxcallsign_crc = bytes.fromhex(destination) + #self.transmit_mesh_signalling_ping_ack(dxcallsign_crc) print(MESH_SIGNALLING_TABLE)