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