Set channel_busy if not set and codec2 data is detected

This commit is contained in:
Mashintime 2023-08-26 23:32:38 -04:00
parent a637a7f8ee
commit 19697da88b

View file

@ -875,7 +875,10 @@ class RF:
# we need to disable this if in testmode as its causing problems with FIFO it seems
if not TESTMODE:
ModemParam.is_codec2_traffic = True
if not ModemParam.channel_busy:
self.log.debug("[MDM] Setting channel_busy since codec2 data detected")
ModemParam.channel_busy=True
ModemParam.channel_busy_delay+=10
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]