From 19697da88b9a789f9a6d766a31ecf31854e41cc3 Mon Sep 17 00:00:00 2001 From: Mashintime Date: Sat, 26 Aug 2023 23:32:38 -0400 Subject: [PATCH] Set channel_busy if not set and codec2 data is detected --- tnc/modem.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tnc/modem.py b/tnc/modem.py index 77ec31d0..a68d1f97 100644 --- a/tnc/modem.py +++ b/tnc/modem.py @@ -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]