mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
wait manually as workaroung for missing information from radio
This commit is contained in:
parent
d8aba44f4e
commit
ed6476a839
|
@ -691,6 +691,15 @@ class RF:
|
||||||
# if we're transmitting FreeDATA signals, reset channel busy state
|
# if we're transmitting FreeDATA signals, reset channel busy state
|
||||||
static.CHANNEL_BUSY = False
|
static.CHANNEL_BUSY = False
|
||||||
|
|
||||||
|
# we need to wait manually for tci processing
|
||||||
|
if static.AUDIO_ENABLE_TCI:
|
||||||
|
#
|
||||||
|
duration = len(txbuffer) / 8000
|
||||||
|
timestamp_to_sleep = time.time() + duration
|
||||||
|
self.log.debug("[MDM] TCI calculated duration", duration=duration)
|
||||||
|
while time.time() < timestamp_to_sleep:
|
||||||
|
threading.Event().wait(0.01)
|
||||||
|
|
||||||
static.PTT_STATE = self.radio.set_ptt(False)
|
static.PTT_STATE = self.radio.set_ptt(False)
|
||||||
|
|
||||||
# Push ptt state to socket stream
|
# Push ptt state to socket stream
|
||||||
|
|
1485
tnc/tci.py
1485
tnc/tci.py
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue