diff --git a/eive_tmtc/tmtc/core.py b/eive_tmtc/tmtc/core.py index c0cadd4..de04050 100644 --- a/eive_tmtc/tmtc/core.py +++ b/eive_tmtc/tmtc/core.py @@ -152,11 +152,7 @@ def pack_core_commands(q: DefaultPusQueueHelper, op_code: str): ) if op_code in OpCodes.REBOOT_FULL: q.add_log_cmd(f"Core Command: {Info.REBOOT_FULL}") - q.add_pus_tc( - make_fsfw_action_cmd( - object_id=CORE_CONTROLLER_ID, action_id=ActionIds.FULL_REBOOT - ) - ) + q.add_pus_tc(create_full_reboot_cmds()) if op_code in OpCodes.XSC_REBOOT_SELF: add_xsc_reboot_cmd(q=q, reboot_self=True) if op_code in OpCodes.XSC_REBOOT_0_0: @@ -271,6 +267,12 @@ def reset_specific_boot_counter(q: DefaultPusQueueHelper, chip: int, copy: int): ) +def create_full_reboot_cmds() -> PusTelecommand: + return make_fsfw_action_cmd( + object_id=CORE_CONTROLLER_ID, action_id=ActionIds.FULL_REBOOT + ) + + def determine_reboot_params() -> (bool, Chip, Copy): chip_select = -1 copy_select = -1