mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
fixed failing ctest bug
This commit is contained in:
parent
ddf0f09480
commit
396e923a8f
12
tnc/modem.py
12
tnc/modem.py
|
@ -693,24 +693,26 @@ class RF:
|
||||||
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:
|
tci_timeout_reached = False
|
||||||
threading.Event().wait(0.01)
|
#while time.time() < timestamp_to_sleep:
|
||||||
|
# threading.Event().wait(0.01)
|
||||||
else:
|
else:
|
||||||
timestamp_to_sleep = time.time()
|
timestamp_to_sleep = time.time()
|
||||||
|
# set tci timeout reached to True for overriding if not used
|
||||||
|
tci_timeout_reached = True
|
||||||
|
|
||||||
tci_timeout_reached = False
|
while self.modoutqueue or not tci_timeout_reached:
|
||||||
while self.modoutqueue and not TESTMODE or not tci_timeout_reached:
|
|
||||||
if static.AUDIO_ENABLE_TCI:
|
if static.AUDIO_ENABLE_TCI:
|
||||||
if time.time() < timestamp_to_sleep:
|
if time.time() < timestamp_to_sleep:
|
||||||
tci_timeout_reached = False
|
tci_timeout_reached = False
|
||||||
else:
|
else:
|
||||||
tci_timeout_reached = True
|
tci_timeout_reached = True
|
||||||
|
|
||||||
|
|
||||||
threading.Event().wait(0.01)
|
threading.Event().wait(0.01)
|
||||||
# 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
|
||||||
|
|
||||||
|
print("ENDE GELÄNDE")
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue