TM: Remove an unnecessary fabsf call

Ironically gcc was stripping that one for us already.
This commit is contained in:
Yuri D'Elia 2022-08-30 22:56:55 +02:00 committed by DRracer
parent 81238fbb15
commit 9dbee61b74

View file

@ -2715,7 +2715,6 @@ static float cost_fn(uint16_t samples, float* const var, float v, uint8_t fan_pw
temp_model::data.step(rec_buffer[i].pwm, fan_pwm, rec_buffer[i].temp, ambient);
float err_v = temp_model::data.dT_err_prev;
if(!isnan(err_v)) {
err_v = fabsf(err_v);
err += err_v * err_v;
++cnt;
}