🐛 Fix probe temp compensation maths (#23004)

This commit is contained in:
tombrazier
2021-10-22 21:56:05 +01:00
committed by GitHub
parent de3c563a99
commit 9c055621a0
3 changed files with 41 additions and 34 deletions

View File

@@ -33,9 +33,9 @@ enum TempSensorID : uint8_t {
};
typedef struct {
uint8_t measurements; // Max. number of measurements to be stored (35 - 80°C)
celsius_t temp_res, // Resolution in °C between measurements
start_temp, // Base measurement; z-offset == 0
uint8_t measurements; // Max. number of measurements to be stored (35 - 80°C)
celsius_t temp_resolution, // Resolution in °C between measurements
start_temp, // Base measurement; z-offset == 0
end_temp;
} temp_calib_t;
@@ -135,8 +135,6 @@ class ProbeTempComp {
*/
static float init_measurement;
static float get_offset_for_temperature(const TempSensorID tsi, const celsius_t temp);
/**
* Fit a linear function in measured temperature offsets
* to allow generating values of higher temperatures.