put filename at top

This commit is contained in:
Robin Müller 2022-11-24 11:57:30 +01:00
parent 70a1d49246
commit 292bafa091
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
1 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ latchup_id_dict = {
HARDCODED = "0"
MANUAL_INPUT = "1"
HARDCODED_FILE = "/home/rmueller/EIVE/eive-obsw/tmtc/filetest/mpsoc_boot.bin"
update_file_dict = {
HARDCODED: ["hardcoded", ""],
@ -687,7 +688,7 @@ def get_update_file() -> str:
input_helper = InputHelper(update_file_dict)
key = input_helper.get_key()
if key == HARDCODED:
file = "/home/rmueller/EIVE/eive-obsw/tmtc/filetest/fake_5kb.bin"
file = HARDCODED_FILE
elif key == MANUAL_INPUT:
file = input("Ploc Supervisor: Specify absolute name of update file: ")
else: