str assembly mode checks #571

Merged
muellerr merged 6 commits from syrlinks_assy_mode_checks into develop 2023-04-05 16:08:17 +02:00
Showing only changes of commit 56c5838d15 - Show all commits

View File

@ -33,7 +33,7 @@ ReturnValue_t StrAssembly::checkChildrenStateOn(Mode_t wantedMode, Submode_t wan
}
ReturnValue_t StrAssembly::isModeCombinationValid(Mode_t mode, Submode_t submode) {
if (mode == DeviceHandlerIF::MODE_NORMAL and submode != SUBMODE_NONE) {
if ((mode == DeviceHandlerIF::MODE_NORMAL or mode == MODE_OFF) and submode != SUBMODE_NONE) {

shouldn't this include MODE_OFF?

shouldn't this include MODE_OFF?

done

done
return HasModesIF::INVALID_SUBMODE;
}
if (mode == MODE_ON and