improve syrlinks commanding a bit

This commit is contained in:
2023-01-10 10:27:00 +01:00
parent a7326b95c4
commit c4dbf3d8be
2 changed files with 40 additions and 18 deletions

View File

@ -278,7 +278,13 @@ def pack_ploc_supv_commands(p: ServiceProviderParams):
if key not in FACTORY_RESET_OPS:
print("Key invalid!")
break
q.add_pus_tc(make_fsfw_action_cmd(object_id=PLOC_SUPV_ID, action_id=SupvActionIds.FACTORY_RESET, user_data=bytes([key])))
q.add_pus_tc(
make_fsfw_action_cmd(
object_id=PLOC_SUPV_ID,
action_id=SupvActionIds.FACTORY_RESET,
user_data=bytes([key]),
)
)
if op_code == "8":
q.add_log_cmd("PLOC Supervisor: Set max restart tries")
restart_tries = int(input("Specify maximum restart tries: "))