From 1b7493f945302b3785ceba6e7a34a727e3898a13 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 8 Mar 2023 01:18:11 +0100 Subject: [PATCH] OFF -> NORMAL: Set transition source modes --- src/fsfw/devicehandlers/DeviceHandlerBase.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fsfw/devicehandlers/DeviceHandlerBase.cpp b/src/fsfw/devicehandlers/DeviceHandlerBase.cpp index 3dbacc95..99b7496c 100644 --- a/src/fsfw/devicehandlers/DeviceHandlerBase.cpp +++ b/src/fsfw/devicehandlers/DeviceHandlerBase.cpp @@ -565,6 +565,9 @@ void DeviceHandlerBase::setMode(Mode_t newMode, uint8_t newSubmode) { */ if (newMode == MODE_ON and continueToNormal) { continueToNormal = false; + // TODO: Check whether the following two lines are okay to do so. + transitionSourceMode = MODE_ON; + transitionSourceSubMode = submode; mode = _MODE_TO_NORMAL; return; } -- 2.43.0