OFF -> NORMAL: Set transition source modes

This commit is contained in:
Robin Müller 2023-03-08 01:18:11 +01:00
parent 7f6ba5f40b
commit 1b7493f945
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -565,6 +565,9 @@ void DeviceHandlerBase::setMode(Mode_t newMode, uint8_t newSubmode) {
*/ */
if (newMode == MODE_ON and continueToNormal) { if (newMode == MODE_ON and continueToNormal) {
continueToNormal = false; continueToNormal = false;
// TODO: Check whether the following two lines are okay to do so.
transitionSourceMode = MODE_ON;
transitionSourceSubMode = submode;
mode = _MODE_TO_NORMAL; mode = _MODE_TO_NORMAL;
return; return;
} }