From 0045ec31070a2e0d4222810fcdab14065993f941 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Mon, 23 Aug 2021 18:49:57 +0200 Subject: [PATCH] updated ARQ_TX_N_TOTAL_ARQ_FRAMES --- tnc/modem.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tnc/modem.py b/tnc/modem.py index 47f854f7..c31bd546 100644 --- a/tnc/modem.py +++ b/tnc/modem.py @@ -325,12 +325,12 @@ class RF(): static.ARQ_TX_N_CURRENT_ARQ_FRAME = n_current_arq_frame.to_bytes(2, byteorder='big') n_total_arq_frame = len(static.TX_BUFFER) - static.ARQ_TX_N_TOTAL_ARQ_FRAMES = n_total_arq_frame.to_bytes(2, byteorder='big') + static.ARQ_TX_N_TOTAL_ARQ_FRAMES = n_total_arq_frame arqframe = frame_type + \ bytes([static.ARQ_TX_N_FRAMES_PER_BURST]) + \ static.ARQ_TX_N_CURRENT_ARQ_FRAME + \ - static.ARQ_TX_N_TOTAL_ARQ_FRAMES + \ + static.n_total_arq_frame.to_bytes(2, byteorder='big') + \ static.DXCALLSIGN_CRC8 + \ static.MYCALLSIGN_CRC8 + \ payload_data @@ -368,12 +368,12 @@ class RF(): static.ARQ_TX_N_CURRENT_ARQ_FRAME = n_current_arq_frame.to_bytes(2, byteorder='big') n_total_arq_frame = len(static.TX_BUFFER) - static.ARQ_TX_N_TOTAL_ARQ_FRAMES = n_total_arq_frame.to_bytes(2, byteorder='big') + static.ARQ_TX_N_TOTAL_ARQ_FRAMES = n_total_arq_frame arqframe = frame_type + \ bytes([static.ARQ_TX_N_FRAMES_PER_BURST]) + \ static.ARQ_TX_N_CURRENT_ARQ_FRAME + \ - static.ARQ_TX_N_TOTAL_ARQ_FRAMES + \ + static.n_total_arq_frame.to_bytes(2, byteorder='big') + \ static.DXCALLSIGN_CRC8 + \ static.MYCALLSIGN_CRC8 + \ payload_data