Fix temperature clipping for temperature calibration. Fixes #6412

This commit is contained in:
Lorenz Meier
2017-01-21 12:08:18 +01:00
parent 7e21aaf0c9
commit 42c5684a06
@@ -262,8 +262,6 @@ bool TemperatureCompensation::calc_thermal_offsets_1D(SensorCalData1D &coef, flo
}
delta_temp = measured_temp - coef.ref_temp;
// calulate the offset
offset = coef.x0 + coef.x1 * delta_temp;
delta_temp *= delta_temp;