wait manually as workaroung for missing information from radio

This commit is contained in:
DJ2LS 2023-03-29 12:05:13 +02:00
parent d8aba44f4e
commit ed6476a839
2 changed files with 237 additions and 1257 deletions

View file

@ -691,6 +691,15 @@ class RF:
# if we're transmitting FreeDATA signals, reset channel busy state
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)
# Push ptt state to socket stream

1485
tnc/tci.py

File diff suppressed because it is too large Load diff