Browse Source

Fix TEMP_ADC_PROBE support for STM32F1 (#19582)

Co-authored-by: ellensp <ellensp@ellensp-HP-ProBook-6470b.fritz.box>
ellensp 4 years ago
parent
commit
435e98ceed
No account linked to committer's email address
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      Marlin/src/HAL/STM32F1/HAL.cpp

+ 9
- 0
Marlin/src/HAL/STM32F1/HAL.cpp View File

@@ -97,6 +97,9 @@ const uint8_t adc_pins[] = {
97 97
   #if HAS_TEMP_ADC_0
98 98
     TEMP_0_PIN,
99 99
   #endif
100
+  #if HAS_TEMP_ADC_PROBE
101
+    TEMP_PROBE_PIN,
102
+  #endif   
100 103
   #if HAS_HEATED_BED
101 104
     TEMP_BED_PIN,
102 105
   #endif
@@ -151,6 +154,9 @@ enum TempPinIndex : char {
151 154
   #if HAS_TEMP_ADC_0
152 155
     TEMP_0,
153 156
   #endif
157
+  #if HAS_TEMP_ADC_PROBE
158
+    TEMP_PROBE,
159
+  #endif   
154 160
   #if HAS_HEATED_BED
155 161
     TEMP_BED,
156 162
   #endif
@@ -341,6 +347,9 @@ void HAL_adc_start_conversion(const uint8_t adc_pin) {
341 347
     #if HAS_TEMP_ADC_0
342 348
       case TEMP_0_PIN: pin_index = TEMP_0; break;
343 349
     #endif
350
+    #if HAS_TEMP_ADC_PROBE
351
+      case TEMP_PROBE_PIN: pin_index = TEMP_PROBE; break;
352
+    #endif   
344 353
     #if HAS_HEATED_BED
345 354
       case TEMP_BED_PIN: pin_index = TEMP_BED; break;
346 355
     #endif

Loading…
Cancel
Save