diff --git a/mission/system/objects/Stack5VHandler.cpp b/mission/system/objects/Stack5VHandler.cpp index e09f2a59..d970d0f1 100644 --- a/mission/system/objects/Stack5VHandler.cpp +++ b/mission/system/objects/Stack5VHandler.cpp @@ -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); }