mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
WIP ARQ - attempt fixing wrong crc
This commit is contained in:
parent
8b41139b48
commit
6b7df9d0a6
1 changed files with 2 additions and 1 deletions
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Reference in a new issue