We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dbb28f commit 72a9a02Copy full SHA for 72a9a02
Marlin/src/feature/filwidth.h
@@ -67,7 +67,7 @@ class FilamentWidthSensor {
67
}
68
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)); }
+ static float raw_to_mm(const uint16_t v) { return v * float(ADC_VREF) * RECIPROCAL(float(MAX_RAW_THERMISTOR_VALUE)); }
71
static float raw_to_mm() { return raw_to_mm(raw); }
72
73
// A scaled reading is ready
0 commit comments