From a88725070b020d43ec834e5e5fd3463d123c688d Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 2 Aug 2023 13:40:37 +0200 Subject: [PATCH] more robust code --- CMakeLists.txt | 2 +- mission/payload/PayloadPcduHandler.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ffaf32f..17a6d5a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,7 +144,7 @@ set(OBSW_ADD_RAD_SENSORS ${INIT_VAL} CACHE STRING "Add Rad Sensor module") set(OBSW_ADD_PL_PCDU - ${INIT_VAL} + 1 CACHE STRING "Add Payload PCDU modukle") set(OBSW_ADD_SYRLINKS 1 diff --git a/mission/payload/PayloadPcduHandler.cpp b/mission/payload/PayloadPcduHandler.cpp index 4f22be87..7984b2ca 100644 --- a/mission/payload/PayloadPcduHandler.cpp +++ b/mission/payload/PayloadPcduHandler.cpp @@ -65,6 +65,7 @@ void PayloadPcduHandler::doShutDown() { return; } state = States::PL_PCDU_OFF; + quickTransitionAlreadyCalled = false; // No need to set mode _MODE_POWER_DOWN, power switching was already handled setMode(MODE_OFF); }