From a3bdfe8b04525a013e5c49b0c47c727ed648bf0b Mon Sep 17 00:00:00 2001 From: Markus Kranz Date: Thu, 16 Mar 2023 14:35:27 +0100 Subject: [PATCH 1/2] enum --- eive_tmtc/tmtc/payload/rad_sensor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eive_tmtc/tmtc/payload/rad_sensor.py b/eive_tmtc/tmtc/payload/rad_sensor.py index 78c82c3..e9dcff0 100644 --- a/eive_tmtc/tmtc/payload/rad_sensor.py +++ b/eive_tmtc/tmtc/payload/rad_sensor.py @@ -5,6 +5,7 @@ @author J. Meier @date 01.07.2021 """ +import enum import struct from eive_tmtc.config.definitions import CustomServiceList @@ -20,7 +21,7 @@ from tmtccmd.util import ObjectIdU32 from tmtccmd.util.tmtc_printer import FsfwTmTcPrinter -class SetId: +class SetId(enum.IntEnum): HK = 3 From 9b56a3ce068206c9252b3d2197d8706dcfdc89bd Mon Sep 17 00:00:00 2001 From: Markus Kranz Date: Thu, 16 Mar 2023 14:41:52 +0100 Subject: [PATCH 2/2] also really important --- eive_tmtc/tmtc/payload/ploc_supervisor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eive_tmtc/tmtc/payload/ploc_supervisor.py b/eive_tmtc/tmtc/payload/ploc_supervisor.py index 8ee470a..0b5df66 100644 --- a/eive_tmtc/tmtc/payload/ploc_supervisor.py +++ b/eive_tmtc/tmtc/payload/ploc_supervisor.py @@ -83,7 +83,7 @@ FACTORY_RESET_OPS = { } -class SupvActionId: +class SupvActionId(enum.IntEnum): HK_REPORT = 1 START_MPSOC = 3 SHUTWOWN_MPSOC = 4