|
@@ -67,7 +67,7 @@ public:
|
67
|
67
|
}
|
68
|
68
|
|
69
|
69
|
// Convert raw measurement to mm
|
70
|
|
- static float raw_to_mm(const uint16_t v) { return v * 5.0f * RECIPROCAL(float(MAX_RAW_THERMISTOR_VALUE)); }
|
|
70
|
+ static float raw_to_mm(const uint16_t v) { return v * float(ADC_VREF) * RECIPROCAL(float(MAX_RAW_THERMISTOR_VALUE)); }
|
71
|
71
|
static float raw_to_mm() { return raw_to_mm(raw); }
|
72
|
72
|
|
73
|
73
|
// A scaled reading is ready
|