Merge branch 'power-ctrl-custom-tranisition' into mpsoc-debug-mode

This commit is contained in:
Robin Müller 2023-10-16 14:45:44 +02:00
commit f4c82d4a1b

View File

@ -100,16 +100,17 @@ void PowerController::performControlOperation() {
return; return;
} }
case InternalState::READY: { case InternalState::READY: {
if (mode != MODE_OFF) { if (mode != MODE_NORMAL) {
calculateStateOfCharge();
if (mode == MODE_NORMAL) {
watchStateOfCharge();
} else {
PoolReadGuard pg(&enablePl); PoolReadGuard pg(&enablePl);
if (pg.getReadResult() == returnvalue::OK) { if (pg.getReadResult() == returnvalue::OK) {
enablePl.setValidity(false, true); enablePl.setValidity(false, true);
} }
} }
if (mode != MODE_OFF) {
calculateStateOfCharge();
if (mode == MODE_NORMAL) {
watchStateOfCharge();
}
} }
break; break;
} }