mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
wait while receiving codec2 data
This commit is contained in:
parent
f6c75eff07
commit
39eed33c6b
1 changed files with 6 additions and 0 deletions
|
@ -1009,6 +1009,12 @@ class RF:
|
||||||
self.log.debug("[MDM] self.modem_transmit_queue", qsize=queuesize)
|
self.log.debug("[MDM] self.modem_transmit_queue", qsize=queuesize)
|
||||||
data = self.modem_transmit_queue.get()
|
data = self.modem_transmit_queue.get()
|
||||||
|
|
||||||
|
# TODO: carefully test this
|
||||||
|
# avoid sending data while we are receiving codec2 signalling data
|
||||||
|
interrupt_time = time.time() + 5
|
||||||
|
while ModemParam.is_codec2_traffic and time.time() < interrupt_time:
|
||||||
|
threading.Event().wait(0.01)
|
||||||
|
|
||||||
# self.log.debug("[MDM] worker_transmit", mode=data[0])
|
# self.log.debug("[MDM] worker_transmit", mode=data[0])
|
||||||
self.transmit(
|
self.transmit(
|
||||||
mode=data[0], repeats=data[1], repeat_delay=data[2], frames=data[3]
|
mode=data[0], repeats=data[1], repeat_delay=data[2], frames=data[3]
|
||||||
|
|
Loading…
Reference in a new issue