Explorar el Código

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

Manianac hace 2 años
padre
commit
72a9a02c17
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Marlin/src/feature/filwidth.h

+ 1
- 1
Marlin/src/feature/filwidth.h Ver fichero

@@ -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

Loading…
Cancelar
Guardar