From 9aa891ef781d75ca217e410bb18898f7666ff068 Mon Sep 17 00:00:00 2001 From: meggert Date: Fri, 9 Feb 2024 12:06:38 +0100 Subject: [PATCH] fix the errors of muellerr --- eive_tmtc/pus_tc/cmd_demux.py | 3 +++ eive_tmtc/tmtc/tm_store.py | 1 + 2 files changed, 4 insertions(+) diff --git a/eive_tmtc/pus_tc/cmd_demux.py b/eive_tmtc/pus_tc/cmd_demux.py index e2de7d9..8abed29 100644 --- a/eive_tmtc/pus_tc/cmd_demux.py +++ b/eive_tmtc/pus_tc/cmd_demux.py @@ -70,6 +70,7 @@ from eive_tmtc.tmtc.tcs.subsystem import pack_tcs_sys_commands from eive_tmtc.tmtc.tcs.tmp1075 import pack_tmp1075_test_into from eive_tmtc.tmtc.test import build_test_commands from eive_tmtc.tmtc.time import pack_time_management_cmd +from eive_tmtc.tmtc.tm_store import pack_tm_store_commands from eive_tmtc.tmtc.wdt import pack_wdt_commands from eive_tmtc.utility.input_helper import InputHelper @@ -281,6 +282,8 @@ def handle_obdh_procedure( return pack_wdt_commands(queue_helper, cmd_path_list[1]) if cmd_path_list[0] == "time": return pack_time_management_cmd(queue_helper, cmd_path_list[1]) + if cmd_path_list[0] == "tm_store": + return pack_tm_store_commands(queue_helper, cmd_path_list[1]) def handle_com_procedure(queue_helper: DefaultPusQueueHelper, cmd_path_list: List[str]): diff --git a/eive_tmtc/tmtc/tm_store.py b/eive_tmtc/tmtc/tm_store.py index b91113e..9ca515d 100644 --- a/eive_tmtc/tmtc/tm_store.py +++ b/eive_tmtc/tmtc/tm_store.py @@ -107,6 +107,7 @@ def pack_tm_store_commands(q: DefaultPusQueueHelper, cmd_path: str): def create_persistent_tm_store_node() -> CmdTreeNode: node = CmdTreeNode("tm_store", "Persistent TM Store") node.add_child(CmdTreeNode(OpCode.DELETE_UP_TO, Info.DELETE_UP_TO)) + node.add_child(CmdTreeNode(OpCode.DELETE_BY_TIME_RANGE, Info.DELETE_BY_TIME_RANGE)) node.add_child( CmdTreeNode(OpCode.RETRIEVAL_BY_TIME_RANGE, Info.RETRIEVAL_BY_TIME_RANGE) )