mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
revert using tx_enable instead of calcualted tx time
This commit is contained in:
parent
ea8f29ce09
commit
90f6178c46
|
@ -695,9 +695,8 @@ class RF:
|
||||||
|
|
||||||
# we need to wait manually for tci processing
|
# we need to wait manually for tci processing
|
||||||
if static.AUDIO_ENABLE_TCI:
|
if static.AUDIO_ENABLE_TCI:
|
||||||
|
|
||||||
duration = len(txbuffer_out) / 8000
|
duration = len(txbuffer_out) / 8000
|
||||||
timestamp_to_sleep = time.time() + (duration)
|
timestamp_to_sleep = time.time() + duration
|
||||||
self.log.debug("[MDM] TCI calculated duration", duration=duration)
|
self.log.debug("[MDM] TCI calculated duration", duration=duration)
|
||||||
while time.time() < timestamp_to_sleep:
|
while time.time() < timestamp_to_sleep:
|
||||||
threading.Event().wait(0.01)
|
threading.Event().wait(0.01)
|
||||||
|
|
Loading…
Reference in a new issue