renamed IS_CODEC2_SIG_TRAFFIC to IS_CODEC2_TRAFFIC

This commit is contained in:
DJ2LS 2023-01-29 12:36:39 +01:00
parent d67433962f
commit 0dee69b671
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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]

View file

@ -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"""