possible fix of broken tci module

This commit is contained in:
DJ2LS 2023-12-21 17:50:56 +01:00
parent e91cf49f21
commit 0b43cc8e48
2 changed files with 6 additions and 9 deletions

View file

@ -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

View file

@ -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(