From aba369f11f928aefe570f18651bd72ce98953961 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 11 Oct 2023 11:38:45 +0200 Subject: [PATCH] added WDT enable and disable command --- eive_tmtc/tmtc/wdt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eive_tmtc/tmtc/wdt.py b/eive_tmtc/tmtc/wdt.py index fb63ac7..5b9d406 100644 --- a/eive_tmtc/tmtc/wdt.py +++ b/eive_tmtc/tmtc/wdt.py @@ -13,7 +13,7 @@ from eive_tmtc.config.object_ids import XIPHOS_WDT_ID class OpCode: ENABLE = "enable" - DISBALE = "disable" + DISABLE = "disable" class Info: @@ -29,7 +29,7 @@ class ActionId(enum.IntEnum): def pack_wdt_commands(q: DefaultPusQueueHelper, op_code: str): if op_code == OpCode.ENABLE: q.add_pus_tc(create_action_cmd(XIPHOS_WDT_ID, ActionId.ENABLE)) - if op_code == OpCode.DISBALE: + if op_code == OpCode.DISABLE: q.add_pus_tc(create_action_cmd(XIPHOS_WDT_ID, ActionId.DISABLE)) @@ -37,7 +37,7 @@ def pack_wdt_commands(q: DefaultPusQueueHelper, op_code: str): def add_xiphos_wdt_defs(defs: TmtcDefinitionWrapper): oce = OpCodeEntry() oce.add(keys=OpCode.ENABLE, info=Info.ENABLE) - oce.add(keys=OpCode.ENABLE, info=Info.DISABLE) + oce.add(keys=OpCode.DISABLE, info=Info.DISABLE) defs.add_service( CustomServiceList.XIPHOS_WDT, info="Xiphos Watchdog Timer", op_code_entry=oce )