From 2cdc210541095ecf8a7f32a7a49bdcdf0ade7ada Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 17 Nov 2022 17:34:46 +0100 Subject: [PATCH] added hardcoded update test mode --- tmtc/payload/ploc_supervisor.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tmtc/payload/ploc_supervisor.py b/tmtc/payload/ploc_supervisor.py index f5d8c3a..bf30308 100644 --- a/tmtc/payload/ploc_supervisor.py +++ b/tmtc/payload/ploc_supervisor.py @@ -36,9 +36,11 @@ latchup_id_dict = { "6": "SAFECOTS", } +HARDCODED = "0" MANUAL_INPUT = "1" update_file_dict = { + HARDCODED: ["hardcoded", ""], MANUAL_INPUT: ["manual input", ""], "2": ["/mnt/sd0/ploc/supervisor/update.bin", "/mnt/sd0/ploc/supervisor/update.bin"], "3": [ @@ -684,7 +686,9 @@ def get_update_file() -> str: LOGGER.info("Specify update file ") input_helper = InputHelper(update_file_dict) key = input_helper.get_key() - if key == MANUAL_INPUT: + if key == HARDCODED: + file = "/home/rmueller/EIVE/eive-obsw/tmtc/filetest" + elif key == MANUAL_INPUT: file = input("Ploc Supervisor: Specify absolute name of update file: ") else: file = update_file_dict[key][1]