small fix to allow teardown handling

This commit is contained in:
Robin Müller 2022-11-17 15:09:08 +01:00
parent c5f91926c9
commit 160ff799ac
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -361,6 +361,8 @@ void DeviceHandlerBase::doStateMachine() {
if ((switchState == PowerSwitchIF::SWITCH_ON) || (switchState == NO_SWITCH)) {
// NOTE: TransitionSourceMode and -SubMode are set by handleCommandedModeTransition
childTransitionFailure = CHILD_TIMEOUT;
transitionSourceMode = _MODE_SHUT_DOWN;
transitionSourceSubMode = SUBMODE_NONE;
setMode(_MODE_START_UP);
callChildStatemachine();
}