rename enumeration
This commit is contained in:
parent
48675efe3f
commit
dbd2e5d9fc
@ -20,7 +20,7 @@ from tmtccmd.pus.s8_fsfw_funccmd import create_action_cmd
|
|||||||
from spacepackets.ecss.tc import PusTelecommand
|
from spacepackets.ecss.tc import PusTelecommand
|
||||||
|
|
||||||
|
|
||||||
class SwitchNumber(enum.IntEnum):
|
class Heater(enum.IntEnum):
|
||||||
HEATER_0_OBC_BRD = 0
|
HEATER_0_OBC_BRD = 0
|
||||||
HEATER_1_PLOC_PROC_BRD = 1
|
HEATER_1_PLOC_PROC_BRD = 1
|
||||||
HEATER_2_ACS_BRD = 2
|
HEATER_2_ACS_BRD = 2
|
||||||
@ -165,7 +165,7 @@ def prompt_heater() -> int:
|
|||||||
print("Heater number not a digit")
|
print("Heater number not a digit")
|
||||||
continue
|
continue
|
||||||
heater_number = int(heater_number)
|
heater_number = int(heater_number)
|
||||||
if heater_number >= SwitchNumber.NUMBER_OF_SWITCHES or heater_number < 0:
|
if heater_number >= Heater.NUMBER_OF_SWITCHES or heater_number < 0:
|
||||||
print("Invalid heater switch number")
|
print("Invalid heater switch number")
|
||||||
continue
|
continue
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user