diff --git a/tnc/data_handler.py b/tnc/data_handler.py index 8e932bae..647c4cda 100644 --- a/tnc/data_handler.py +++ b/tnc/data_handler.py @@ -243,7 +243,7 @@ class DATA: # stuck in IRS # # send transmission queued information once - if static.ARQ_STATE or static.IS_CODEC2_SIG_TRAFFIC: + if static.ARQ_STATE or static.IS_CODEC2_TRAFFIC: self.log.debug(f"[TNC] TX DISPATCHER - waiting with processing command ", arq_state=static.ARQ_STATE) self.send_data_to_socket_queue( @@ -252,7 +252,7 @@ class DATA: status="queued", ) # now stay in while loop until state released - while static.ARQ_STATE or static.IS_CODEC2_SIG_TRAFFIC: + while static.ARQ_STATE or static.IS_CODEC2_TRAFFIC: threading.Event().wait(0.01) # Dispatch commands known to command_dispatcher diff --git a/tnc/modem.py b/tnc/modem.py index 9e36ab00..767316f8 100644 --- a/tnc/modem.py +++ b/tnc/modem.py @@ -649,7 +649,7 @@ class RF: rx_status = codec2.api.freedv_get_rx_status(freedv) if rx_status != 0: - static.IS_CODEC2_SIG_TRAFFIC = True + static.IS_CODEC2_TRAFFIC = True self.log.debug( "[MDM] [demod_audio] modem state", mode=mode_name, rx_status=rx_status, sync_flag=codec2.api.rx_sync_flags_to_text[rx_status] diff --git a/tnc/static.py b/tnc/static.py index 4e4fe197..f00e5e14 100644 --- a/tnc/static.py +++ b/tnc/static.py @@ -134,7 +134,7 @@ INFO: list = [] # ------- CODEC2 SETTINGS TUNING_RANGE_FMIN: float = -50.0 TUNING_RANGE_FMAX: float = 50.0 -IS_CODEC2_SIG_TRAFFIC: bool = False # true if we have codec2 signalling mode traffic on channel +IS_CODEC2_TRAFFIC: bool = False # true if we have codec2 signalling mode traffic on channel class FRAME_TYPE(Enum): """Lookup for frame types"""