SoC Calculator #754

Merged
muellerr merged 74 commits from soc-calculator into main 2023-10-11 10:50:48 +02:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit e9ad8d956a - Show all commits

View File

@ -1512,7 +1512,7 @@ ReturnValue_t PlocMpsocHandler::checkModeCommand(Mode_t commandedMode, Submode_t
PoolReadGuard pg(&enablePl);
if (pg.getReadResult() == returnvalue::OK) {
if (enablePl.plUseAllowed.isValid() and not enablePl.plUseAllowed.value) {
return NON_OP_SOC;
return NON_OP_STATE_OF_CHARGE;
}
}
}

View File

@ -2000,7 +2000,7 @@ ReturnValue_t PlocSupervisorHandler::checkModeCommand(Mode_t commandedMode,
PoolReadGuard pg(&enablePl);
if (pg.getReadResult() == returnvalue::OK) {
if (enablePl.plUseAllowed.isValid() and not enablePl.plUseAllowed.value) {
return NON_OP_SOC;
return NON_OP_STATE_OF_CHARGE;
}
}
}

View File

@ -570,7 +570,7 @@ ReturnValue_t PayloadPcduHandler::checkModeCommand(Mode_t commandedMode, Submode
PoolReadGuard pg(&enablePl);
if (pg.getReadResult() == returnvalue::OK) {
if (enablePl.plUseAllowed.isValid() and not enablePl.plUseAllowed.value) {
return NON_OP_SOC;
return NON_OP_STATE_OF_CHARGE;
}
}
}