mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
reset frame received counter on NACK
This commit is contained in:
parent
72f567abfb
commit
20cd65a557
1 changed files with 3 additions and 0 deletions
|
@ -624,6 +624,9 @@ class DATA:
|
||||||
# reset burst timeout in case we had to wait too long
|
# reset burst timeout in case we had to wait too long
|
||||||
self.burst_last_received = time.time()
|
self.burst_last_received = time.time()
|
||||||
|
|
||||||
|
# reset frame counter for not increasing speed level
|
||||||
|
self.frame_received_counter = 0
|
||||||
|
|
||||||
def send_disconnect_frame(self) -> None:
|
def send_disconnect_frame(self) -> None:
|
||||||
"""Build and send a disconnect frame"""
|
"""Build and send a disconnect frame"""
|
||||||
disconnection_frame = bytearray(self.length_sig1_frame)
|
disconnection_frame = bytearray(self.length_sig1_frame)
|
||||||
|
|
Loading…
Reference in a new issue