🐛 Use ADC_VREF for Filament Width ADC Vref (#23977)

This commit is contained in:
Manianac authored and Scott Lahteine committed 2022-05-07 16:49:47 -05:00
1 parent bd5c6bf23c
commit a6794c1862
1 file changed
+1 -1
+1 -1
View File
@@ -67,7 +67,7 @@ public:
}
// Convert raw measurement to mm
static float raw_to_mm(const uint16_t v) { return v * 5.0f * RECIPROCAL(float(MAX_RAW_THERMISTOR_VALUE)); }
static float raw_to_mm(const uint16_t v) { return v * float(ADC_VREF) * RECIPROCAL(float(MAX_RAW_THERMISTOR_VALUE)); }
static float raw_to_mm() { return raw_to_mm(raw); }
// A scaled reading is ready