5V stack commanding for device handlers #335

Merged
meierj merged 30 commits from mueller_5v_stack_cmd_for_devices into develop 2023-01-10 15:49:10 +01:00
Showing only changes of commit 998c39d564 - Show all commits

View File

@ -17,7 +17,7 @@ ReturnValue_t Stack5VHandler::deviceToOn(StackCommander commander) {
if (handlerState == HandlerState::SWITCH_PENDING) {
return BUSY;
}
handlerState == HandlerState::SWITCH_PENDING;
handlerState = HandlerState::SWITCH_PENDING;
return switcher.sendSwitchCommand(stackSwitch, PowerSwitchIF::SWITCH_ON);
}
@ -38,7 +38,7 @@ ReturnValue_t Stack5VHandler::deviceToOff(StackCommander commander) {
(commander == StackCommander::RAD_SENSOR and plPcduIsOn)) {
return returnvalue::OK;
}
handlerState == HandlerState::SWITCH_PENDING;
handlerState = HandlerState::SWITCH_PENDING;
return switcher.sendSwitchCommand(stackSwitch, PowerSwitchIF::SWITCH_OFF);
}