some minor fixes
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
Robin Müller 2022-12-22 16:30:38 +01:00
parent 3edf429557
commit 998c39d564

View File

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