From 92c0172b59f92067a00a9a1b12e6f8ab4f19be56 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 26 Mar 2024 17:50:37 +0100 Subject: [PATCH] bugfix for EPS --- eive_tmtc/pus_tc/cmd_demux.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eive_tmtc/pus_tc/cmd_demux.py b/eive_tmtc/pus_tc/cmd_demux.py index d379ebd..0f0f5ec 100644 --- a/eive_tmtc/pus_tc/cmd_demux.py +++ b/eive_tmtc/pus_tc/cmd_demux.py @@ -116,9 +116,9 @@ def handle_pus_procedure( def handle_eps_procedure(queue_helper: DefaultPusQueueHelper, cmd_path_list: List[str]): obj_id_man = get_object_ids() - if len(cmd_path_list) == 1: - return pack_power_commands(queue_helper, cmd_path_list[0]) - assert len(cmd_path_list) >= 2 + assert len(cmd_path_list) >= 1 + if cmd_path_list[0] == "power": + return pack_power_commands(queue_helper, cmd_path_list[1]) if cmd_path_list[0] == "pwr_ctrl": return pack_power_ctrl_command(queue_helper, cmd_path_list[1]) if cmd_path_list[0] == "p60_dock":