5V stack commanding for device handlers #335
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user