Browse Source

Define "resolution" in bits

Scott Lahteine 5 years ago
parent
commit
8ad056013c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/module/thermistor/thermistors.h

+ 2
- 2
Marlin/src/module/thermistor/thermistors.h View File

@@ -23,8 +23,8 @@
23 23
 
24 24
 #include "../../inc/MarlinConfig.h"
25 25
 
26
-#define THERMISTOR_TABLE_ADC_RESOLUTION 1024
27
-#define THERMISTOR_TABLE_SCALE (HAL_ADC_RANGE / (THERMISTOR_TABLE_ADC_RESOLUTION))
26
+#define THERMISTOR_TABLE_ADC_RESOLUTION 10
27
+#define THERMISTOR_TABLE_SCALE (HAL_ADC_RANGE / _BV(THERMISTOR_TABLE_ADC_RESOLUTION))
28 28
 #if ENABLED(HAL_ADC_FILTERED)
29 29
   #define OVERSAMPLENR 1
30 30
 #else

Loading…
Cancel
Save