fixed missing speed level

This commit is contained in:
DJ2LS 2024-05-11 10:43:33 +02:00
parent 973890dd3b
commit 9a92dd89f3
2 changed files with 3 additions and 3 deletions

View file

@ -173,7 +173,7 @@ class ARQSessionIRS(arq_session.ARQSession):
self.received_bytes = len(self.received_data) self.received_bytes = len(self.received_data)
self.log(f"Received {self.received_bytes}/{self.total_length} bytes") self.log(f"Received {self.received_bytes}/{self.total_length} bytes")
self.event_manager.send_arq_session_progress( self.event_manager.send_arq_session_progress(
False, self.id, self.dxcall, self.received_bytes, self.total_length, self.state.name, self.calculate_session_statistics(self.received_bytes, self.total_length)) False, self.id, self.dxcall, self.received_bytes, self.total_length, self.state.name, self.speed_level, self.calculate_session_statistics(self.received_bytes, self.total_length))
return True return True
@ -192,7 +192,7 @@ class ARQSessionIRS(arq_session.ARQSession):
self.set_state(IRS_State.BURST_REPLY_SENT) self.set_state(IRS_State.BURST_REPLY_SENT)
self.event_manager.send_arq_session_progress(False, self.id, self.dxcall, self.received_bytes, self.event_manager.send_arq_session_progress(False, self.id, self.dxcall, self.received_bytes,
self.total_length, self.state.name, self.total_length, self.state.name, self.speed_level,
statistics=self.calculate_session_statistics( statistics=self.calculate_session_statistics(
self.received_bytes, self.total_length)) self.received_bytes, self.total_length))

View file

@ -173,7 +173,7 @@ class ARQSessionISS(arq_session.ARQSession):
self.confirmed_bytes = self.expected_byte_offset self.confirmed_bytes = self.expected_byte_offset
self.log(f"IRS confirmed {self.confirmed_bytes}/{self.total_length} bytes") self.log(f"IRS confirmed {self.confirmed_bytes}/{self.total_length} bytes")
self.event_manager.send_arq_session_progress(True, self.id, self.dxcall, self.confirmed_bytes, self.total_length, self.state.name, statistics=self.calculate_session_statistics(self.confirmed_bytes, self.total_length)) self.event_manager.send_arq_session_progress(True, self.id, self.dxcall, self.confirmed_bytes, self.total_length, self.state.name, self.speed_level, statistics=self.calculate_session_statistics(self.confirmed_bytes, self.total_length))
# check if we received an abort flag # check if we received an abort flag
if irs_frame["flag"]["ABORT"]: if irs_frame["flag"]["ABORT"]: