From 6b7df9d0a6279d222cc1a9500737fb345f41c62c Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Sat, 16 Dec 2023 17:42:51 +0100 Subject: [PATCH] WIP ARQ - attempt fixing wrong crc --- modem/arq_session_irs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modem/arq_session_irs.py b/modem/arq_session_irs.py index bddf01cc..7325a638 100644 --- a/modem/arq_session_irs.py +++ b/modem/arq_session_irs.py @@ -57,7 +57,7 @@ class ARQSessionIRS(arq_session.ARQSession): self.transmitted_acks = 0 def all_data_received(self): - return self.received_bytes == len(self.received_data) + return self.total_length == self.received_bytes def final_crc_check(self): print(self.received_data) @@ -96,6 +96,7 @@ class ARQSessionIRS(arq_session.ARQSession): def send_info_ack(self, info_frame): # Get session info from ISS self.received_data = bytearray(info_frame['total_length']) + self.total_length = info_frame['total_length'] self.total_crc = info_frame['total_crc'] self.dx_snr.append(info_frame['snr'])