a lot of improvements

This commit is contained in:
2022-08-11 18:10:15 +02:00
parent dc07dd8c6d
commit 8b275bdca8
14 changed files with 446 additions and 505 deletions

View File

@ -217,9 +217,12 @@ def main():
LOGGER.info("TMTC Client in IDLE mode")
time.sleep(3.0)
elif state.request == BackendRequest.DELAY_LISTENER:
time.sleep(0.8)
time.sleep(0.5)
elif state.request == BackendRequest.DELAY_CUSTOM:
time.sleep(state.next_delay.total_seconds())
if state.next_delay.total_seconds() < 0.5:
time.sleep(state.next_delay.total_seconds())
else:
time.sleep(0.5)
elif state.request == BackendRequest.CALL_NEXT:
pass
except KeyboardInterrupt: