From 0b43cc8e48a62a6e803e571b76351c6587d2557a Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Thu, 21 Dec 2023 17:50:56 +0100 Subject: [PATCH] possible fix of broken tci module --- modem/demodulator.py | 6 ++++++ modem/modem.py | 9 --------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/modem/demodulator.py b/modem/demodulator.py index 2871c2aa..4392d0f5 100644 --- a/modem/demodulator.py +++ b/modem/demodulator.py @@ -56,6 +56,12 @@ class Demodulator(): # enable decoding of signalling modes self.MODE_DICT[codec2.FREEDV_MODE.signalling.value]["decode"] = True + tci_rx_callback_thread = threading.Thread( + target=self.tci_rx_callback, + name="TCI RX CALLBACK THREAD", + daemon=True, + ) + tci_rx_callback_thread.start() def init_codec2(self): # Open codec2 instances diff --git a/modem/modem.py b/modem/modem.py index 74389ebb..0c628e5e 100644 --- a/modem/modem.py +++ b/modem/modem.py @@ -144,8 +144,6 @@ class RF: # self.stream.active = False # self.stream.stop - self.beacon.stop() - except Exception: self.log.error("[MDM] Error stopping modem") @@ -210,13 +208,6 @@ class RF: # lets init TCI module self.tci_module = tci.TCICtrl(self.audio_received_queue) - tci_rx_callback_thread = threading.Thread( - target=self.tci_rx_callback, - name="TCI RX CALLBACK THREAD", - daemon=True, - ) - tci_rx_callback_thread.start() - # let's start the audio tx callback self.log.debug("[MDM] Starting tci tx callback thread") tci_tx_callback_thread = threading.Thread(