Merge branch 'power-ctrl-custom-tranisition' into mpsoc-debug-mode
This commit is contained in:
commit
f4c82d4a1b
@ -100,15 +100,16 @@ void PowerController::performControlOperation() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
case InternalState::READY: {
|
case InternalState::READY: {
|
||||||
|
if (mode != MODE_NORMAL) {
|
||||||
|
PoolReadGuard pg(&enablePl);
|
||||||
|
if (pg.getReadResult() == returnvalue::OK) {
|
||||||
|
enablePl.setValidity(false, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (mode != MODE_OFF) {
|
if (mode != MODE_OFF) {
|
||||||
calculateStateOfCharge();
|
calculateStateOfCharge();
|
||||||
if (mode == MODE_NORMAL) {
|
if (mode == MODE_NORMAL) {
|
||||||
watchStateOfCharge();
|
watchStateOfCharge();
|
||||||
} else {
|
|
||||||
PoolReadGuard pg(&enablePl);
|
|
||||||
if (pg.getReadResult() == returnvalue::OK) {
|
|
||||||
enablePl.setValidity(false, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user