From dad9230f3d43d7173d06a9642f9b8c1550c6d5fc Mon Sep 17 00:00:00 2001 From: dj2ls Date: Thu, 6 Oct 2022 11:57:54 +0200 Subject: [PATCH] dirty fix of stopping transmission --- tnc/data_handler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tnc/data_handler.py b/tnc/data_handler.py index e42b3ec6..18b66378 100644 --- a/tnc/data_handler.py +++ b/tnc/data_handler.py @@ -2030,12 +2030,12 @@ class DATA: self.log.warning("[TNC] Stopping transmission!") stop_frame = bytearray(self.length_sig_frame) stop_frame[:1] = bytes([FR_TYPE.ARQ_STOP.value]) - # stop_frame[1:4] = static.DXCALLSIGN_CRC - # stop_frame[4:7] = static.MYCALLSIGN_CRC - stop_frame[1:2] = self.session_id + stop_frame[1:4] = static.DXCALLSIGN_CRC + stop_frame[4:7] = static.MYCALLSIGN_CRC + # TODO: Not sure if we really need the session id when disconnecting + # stop_frame[1:2] = self.session_id stop_frame[7:13] = helpers.callsign_to_bytes(self.mycallsign) - - self.enqueue_frame_for_tx(stop_frame, copies=2, repeat_delay=0) + self.enqueue_frame_for_tx(stop_frame, copies=6, repeat_delay=0) static.TNC_STATE = "IDLE" static.ARQ_STATE = False