From e6e2319f430166b831c25393e6fae27514a05bab Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Sun, 29 Jan 2023 12:51:06 +0100 Subject: [PATCH] only set IS_CODEC2_TRAFFIC if not TESTMODE --- tnc/modem.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tnc/modem.py b/tnc/modem.py index 767316f8..0a26b5b7 100644 --- a/tnc/modem.py +++ b/tnc/modem.py @@ -649,7 +649,9 @@ class RF: rx_status = codec2.api.freedv_get_rx_status(freedv) if rx_status != 0: - static.IS_CODEC2_TRAFFIC = True + # we need to disable this if in testmode as its causing problems with FIFO it seems + if not TESTMODE: + 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]