Skip to content

Commit

Permalink
Fix TEMP_ADC_PROBE support for STM32F1 (MarlinFirmware#19582)
Browse files Browse the repository at this point in the history
Co-authored-by: ellensp <ellensp@ellensp-HP-ProBook-6470b.fritz.box>
  • Loading branch information
2 people authored and thinkyhead committed Oct 16, 2020
1 parent 9834a36 commit 20bcaa7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Marlin/src/HAL/STM32F1/HAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ const uint8_t adc_pins[] = {
#if HAS_TEMP_ADC_0
TEMP_0_PIN,
#endif
#if HAS_TEMP_ADC_PROBE
TEMP_PROBE_PIN,
#endif
#if HAS_HEATED_BED
TEMP_BED_PIN,
#endif
Expand Down Expand Up @@ -151,6 +154,9 @@ enum TempPinIndex : char {
#if HAS_TEMP_ADC_0
TEMP_0,
#endif
#if HAS_TEMP_ADC_PROBE
TEMP_PROBE,
#endif
#if HAS_HEATED_BED
TEMP_BED,
#endif
Expand Down Expand Up @@ -341,6 +347,9 @@ void HAL_adc_start_conversion(const uint8_t adc_pin) {
#if HAS_TEMP_ADC_0
case TEMP_0_PIN: pin_index = TEMP_0; break;
#endif
#if HAS_TEMP_ADC_PROBE
case TEMP_PROBE_PIN: pin_index = TEMP_PROBE; break;
#endif
#if HAS_HEATED_BED
case TEMP_BED_PIN: pin_index = TEMP_BED; break;
#endif
Expand Down

0 comments on commit 20bcaa7

Please sign in to comment.