Merge pull request 'int enum' (#141) from kranz_enum into main

Reviewed-on: #141
This commit is contained in:
Robin Müller 2023-02-27 16:58:18 +01:00
commit 78b55f919c
2 changed files with 3 additions and 2 deletions

View File

@ -61,6 +61,7 @@ class ImtqSetId:
NEGATIVE_Y_TEST = 13
POSITIVE_Z_TEST = 14
NEGATIVE_Z_TEST = 15
SELF_TEST_SET = 16
class ImtqActionId:
@ -307,7 +308,7 @@ ENG_HK_HEADERS = [
def handle_imtq_hk(printer: FsfwTmTcPrinter, hk_data: bytes, set_id: int):
if (set_id >= ImtqSetId.POSITIVE_X_TEST) and (set_id <= ImtqSetId.NEGATIVE_Z_TEST):
if set_id == ImtqSetId.SELF_TEST_SET:
return handle_self_test_data(printer, hk_data)
elif set_id == ImtqSetId.ENG_HK_NO_TORQUE:
_LOGGER.info("Found engineering HK without torque")

View File

@ -45,7 +45,7 @@ class SetId(enum.IntEnum):
SWITCHER_SET = 0
class PcduSetIds:
class PcduSetIds(enum.IntEnum):
SWITCHER_SET = 0