From ef05b9e8cb5e9829d59dfbc93ebdcf01a430c575 Mon Sep 17 00:00:00 2001 From: Mashintime Date: Tue, 7 May 2024 16:42:12 -0400 Subject: [PATCH] Experimental fix as requested by DJ2LS (I think) --- freedata_server/arq_session_iss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freedata_server/arq_session_iss.py b/freedata_server/arq_session_iss.py index d7e537e5..ec7edaec 100644 --- a/freedata_server/arq_session_iss.py +++ b/freedata_server/arq_session_iss.py @@ -95,7 +95,7 @@ class ARQSessionISS(arq_session.ARQSession): retries = retries - 1 # TODO TEMPORARY TEST FOR SENDING IN LOWER SPEED LEVEL IF WE HAVE TWO FAILED TRANSMISSIONS!!! - if retries == 8 and isARQBurst and self.speed_level > 0 and self.state not in [ISS_State.ABORTED, ISS_State.ABORTING]: + if retries == self.RETRIES_DATA - 2 and isARQBurst and self.speed_level > 0 and self.state not in [ISS_State.ABORTED, ISS_State.ABORTING]: self.log("SENDING IN FALLBACK SPEED LEVEL", isWarning=True) self.speed_level = 0 print(f" CONFIRMED BYTES: {self.confirmed_bytes}")