mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
possible fix of broken tci module
This commit is contained in:
parent
e91cf49f21
commit
0b43cc8e48
2 changed files with 6 additions and 9 deletions
|
@ -56,6 +56,12 @@ class Demodulator():
|
||||||
# enable decoding of signalling modes
|
# enable decoding of signalling modes
|
||||||
self.MODE_DICT[codec2.FREEDV_MODE.signalling.value]["decode"] = True
|
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):
|
def init_codec2(self):
|
||||||
# Open codec2 instances
|
# Open codec2 instances
|
||||||
|
|
|
@ -144,8 +144,6 @@ class RF:
|
||||||
# self.stream.active = False
|
# self.stream.active = False
|
||||||
# self.stream.stop
|
# self.stream.stop
|
||||||
|
|
||||||
self.beacon.stop()
|
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
self.log.error("[MDM] Error stopping modem")
|
self.log.error("[MDM] Error stopping modem")
|
||||||
|
|
||||||
|
@ -210,13 +208,6 @@ class RF:
|
||||||
# lets init TCI module
|
# lets init TCI module
|
||||||
self.tci_module = tci.TCICtrl(self.audio_received_queue)
|
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
|
# let's start the audio tx callback
|
||||||
self.log.debug("[MDM] Starting tci tx callback thread")
|
self.log.debug("[MDM] Starting tci tx callback thread")
|
||||||
tci_tx_callback_thread = threading.Thread(
|
tci_tx_callback_thread = threading.Thread(
|
||||||
|
|
Loading…
Reference in a new issue