Compare commits

...

1 Commits

Author SHA1 Message Date
Matthias Grob 28d63af4dd battery: remove unused _first_parameter_update 2023-10-31 14:10:39 +01:00
2 changed files with 1 additions and 5 deletions

View File

@ -317,6 +317,7 @@ float Battery::computeRemainingTime(float current_a)
void Battery::updateParams()
{
ModuleParams::updateParams();
param_get(_param_handles.v_empty, &_params.v_empty);
param_get(_param_handles.v_charged, &_params.v_charged);
param_get(_param_handles.n_cells, &_params.n_cells);
@ -328,8 +329,4 @@ void Battery::updateParams()
param_get(_param_handles.crit_thr, &_params.crit_thr);
param_get(_param_handles.emergen_thr, &_params.emergen_thr);
param_get(_param_handles.bat_avrg_current, &_params.bat_avrg_current);
ModuleParams::updateParams();
_first_parameter_update = false;
}

View File

@ -142,7 +142,6 @@ protected:
const int _index;
bool _first_parameter_update{true};
void updateParams() override;
private: