small fix for PL PCDU handler shutdown handling
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
@ -66,14 +66,6 @@ void PayloadPcduHandler::doShutDown() {
|
|||||||
if (retval == BUSY) {
|
if (retval == BUSY) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
state = States::STACK_5V_PENDING;
|
|
||||||
}
|
|
||||||
if (state == States::STACK_5V_PENDING) {
|
|
||||||
if (not stackHandler.isSwitchOn()) {
|
|
||||||
state = States::STACK_5V_CORRECT;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (state == States::STACK_5V_CORRECT) {
|
|
||||||
state = States::PL_PCDU_OFF;
|
state = States::PL_PCDU_OFF;
|
||||||
// No need to set mode _MODE_POWER_DOWN, power switching was already handled
|
// No need to set mode _MODE_POWER_DOWN, power switching was already handled
|
||||||
setMode(MODE_OFF);
|
setMode(MODE_OFF);
|
||||||
@ -93,7 +85,7 @@ void PayloadPcduHandler::doTransition(Mode_t modeFrom, Submode_t subModeFrom) {
|
|||||||
gpioIF->pullLow(gpioIds::PLPCDU_ENB_TX);
|
gpioIF->pullLow(gpioIds::PLPCDU_ENB_TX);
|
||||||
gpioIF->pullLow(gpioIds::PLPCDU_ENB_VBAT0);
|
gpioIF->pullLow(gpioIds::PLPCDU_ENB_VBAT0);
|
||||||
gpioIF->pullLow(gpioIds::PLPCDU_ENB_VBAT1);
|
gpioIF->pullLow(gpioIds::PLPCDU_ENB_VBAT1);
|
||||||
state = States::POWER_CHANNELS_ON;
|
state = States::STACK_5V_CORRECT;
|
||||||
}
|
}
|
||||||
DeviceHandlerBase::doTransition(modeFrom, subModeFrom);
|
DeviceHandlerBase::doTransition(modeFrom, subModeFrom);
|
||||||
}
|
}
|
||||||
|
2
tmtc
2
tmtc
Submodule tmtc updated: 24f6a59cf9...c4dbf3d8be
Reference in New Issue
Block a user