Small bugfix for Power CTRL set handling #804

Merged
meggert merged 3 commits from power-ctrl-custom-tranisition into main 2023-10-16 16:38:59 +02:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit 04c081f4aa - Show all commits

View File

@ -370,3 +370,10 @@ ReturnValue_t PowerController::calculateCoulombCounterChargeUpperThreshold() {
lookUpTableOcv[0][lookUpTableIdx + 1]);
return returnvalue::OK;
}
void PowerController::startTransition(Mode_t mode, Submode_t submode) {
if (mode == MODE_OFF) {
enablePl.setValidity(false, true);
}
ControllerBase::startTransition(mode, submode);
}

View File

@ -22,6 +22,7 @@ class PowerController : public ExtendedControllerBase, public ReceivesParameterM
ReturnValue_t getParameter(uint8_t domainId, uint8_t parameterId,
ParameterWrapper* parameterWrapper, const ParameterWrapper* newValues,
uint16_t startAtIndex) override;
void startTransition(Mode_t mode, Submode_t submode) override;
private:
bool enableHkSets = false;