mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
introduce IS_CODEC2_SIG_TRAFFIC
This commit is contained in:
parent
5649340175
commit
9db54a2a51
|
@ -447,6 +447,9 @@ class RF:
|
|||
return False
|
||||
|
||||
static.TRANSMITTING = True
|
||||
# if we're transmitting FreeDATA signals, reset channel busy state
|
||||
static.CHANNEL_BUSY = False
|
||||
|
||||
start_of_transmission = time.time()
|
||||
# TODO: Moved ptt toggle some steps before audio is ready for testing
|
||||
# Toggle ptt early to save some time and send ptt state via socket
|
||||
|
@ -576,6 +579,8 @@ class RF:
|
|||
|
||||
while self.modoutqueue:
|
||||
threading.Event().wait(0.01)
|
||||
# if we're transmitting FreeDATA signals, reset channel busy state
|
||||
static.CHANNEL_BUSY = False
|
||||
|
||||
static.PTT_STATE = self.hamlib.set_ptt(False)
|
||||
|
||||
|
@ -644,8 +649,7 @@ class RF:
|
|||
rx_status = codec2.api.freedv_get_rx_status(freedv)
|
||||
|
||||
if rx_status != 0:
|
||||
# if we're receiving FreeDATA signals, reset channel busy state
|
||||
static.CHANNEL_BUSY = False
|
||||
static.IS_CODEC2_SIG_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]
|
||||
|
|
|
@ -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
|
||||
|
||||
class FRAME_TYPE(Enum):
|
||||
"""Lookup for frame types"""
|
||||
|
|
Loading…
Reference in a new issue