removed mode 255 from mode list

This commit is contained in:
dj2ls 2022-09-05 09:04:35 +02:00
parent 073f26ace8
commit dbffd1f01d
2 changed files with 1 additions and 3 deletions

View file

@ -30,7 +30,6 @@ class FREEDV_MODE(Enum):
fsk_ldpc = 9
fsk_ldpc_0 = 200
fsk_ldpc_1 = 201
auto_mode = 255 # TODO: find a better way for this --> better remove the need for this line
# Function for returning the mode value
def freedv_get_mode_value_by_name(mode: str) -> int:

View file

@ -805,7 +805,6 @@ class DATA:
self.log.info(
"[TNC] | TX | DATACHANNEL",
mode=FREEDV_MODE(mode).name,
Bytes=static.TOTAL_BYTES,
)
@ -843,7 +842,7 @@ class DATA:
# we have TX_N_MAX_RETRIES_PER_BURST attempts for sending a burst
for self.tx_n_retry_of_burst in range(TX_N_MAX_RETRIES_PER_BURST):
data_mode = mode
self.log.debug("[TNC] FIXED MODE:", mode=FREEDV_MODE(data_mode).name)
# self.log.debug("[TNC] FIXED MODE:", mode=FREEDV_MODE(data_mode).name)
# we are doing a modulo check of transmission retries of the actual burst
# every 2nd retry which fails, decreases speedlevel by 1.