pure chaos
All checks were successful
EIVE/eive-obsw/pipeline/pr-v2.1.0-dev This commit looks good

This commit is contained in:
Robin Müller 2023-05-16 18:46:13 +02:00
parent 90b7f069dc
commit c3b6b0a7ee
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -219,18 +219,14 @@ void PlocMpsocHandler::doStartUp() {
void PlocMpsocHandler::doShutDown() {
#ifdef XIPHOS_Q7S
#if not OBSW_MPSOC_JTAG_BOOT == 1
switch (powerState) {
case PowerState::ON:
uartIsolatorSwitch.pullLow();
commandActionHelper.commandAction(supervisorHandler, supv::SHUTDOWN_MPSOC);
powerState = PowerState::SHUTDOWN;
return;
case PowerState::OFF:
hkReport.setReportingEnabled(false);
setMode(_MODE_POWER_DOWN);
break;
default:
break;
if (powerState == PowerState::ON) {
uartIsolatorSwitch.pullLow();
commandActionHelper.commandAction(supervisorHandler, supv::SHUTDOWN_MPSOC);
powerState = PowerState::SHUTDOWN;
return;
} else if (powerState == PowerState::SHUTDOWN) {
// Wait till power state is OFF.
return;
}
#else
uartIsolatorSwitch.pullLow();