start implementing closure support for CFDP

This commit is contained in:
2022-10-17 12:26:18 +02:00
parent cafd8a7e52
commit 9eedbe3810
7 changed files with 31 additions and 6 deletions

View File

@ -48,7 +48,8 @@ def main():
LOGGER.info("TMTC Client in IDLE mode")
time.sleep(3.0)
elif state.request == BackendRequest.DELAY_LISTENER:
if tc_handler.cfdp_done:
if tc_handler.cfdp_done():
LOGGER.info("CFDP transaction done, closing client")
sys.exit(0)
time.sleep(0.8)
elif state.request == BackendRequest.DELAY_CUSTOM: