diff --git a/common.py b/common.py index 4b80ee9..429f31d 100644 --- a/common.py +++ b/common.py @@ -493,12 +493,14 @@ class TcHandler(TcHandlerBase): params.com_if.send(raw_tc) def queue_finished_cb(self, info: ProcedureWrapper): - if info is not None and info.proc_type == TcQueueEntryType.PUS_TC: - def_proc = info.to_def_procedure() - LOGGER.info( - f"Finished queue for service {def_proc.service} and op code {def_proc.op_code}" - ) - + if info is not None: + if info.proc_type == TcQueueEntryType.PUS_TC: + def_proc = info.to_def_procedure() + LOGGER.info( + f"Finished queue for service {def_proc.service} and op code {def_proc.op_code}" + ) + elif info.proc_type == TcProcedureType.CFDP: + LOGGER.info(f"Finished CFDP queue") def setup_params(hook_obj: TmTcCfgHookBase) -> SetupWrapper: print(f"-- eive TMTC Commander --")