Browse Source

Init ADC keypad analog input (#14585)

Pavel4e5 5 years ago
parent
commit
8babf55b18
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      Marlin/src/module/temperature.cpp

+ 3
- 0
Marlin/src/module/temperature.cpp View File

@@ -1675,6 +1675,9 @@ void Temperature::init() {
1675 1675
   #if ENABLED(FILAMENT_WIDTH_SENSOR)
1676 1676
     HAL_ANALOG_SELECT(FILWIDTH_PIN);
1677 1677
   #endif
1678
+  #if HAS_ADC_BUTTONS
1679
+    HAL_ANALOG_SELECT(ADC_KEYPAD_PIN);
1680
+  #endif
1678 1681
 
1679 1682
   HAL_timer_start(TEMP_TIMER_NUM, TEMP_TIMER_FREQUENCY);
1680 1683
   ENABLE_TEMPERATURE_INTERRUPT();

Loading…
Cancel
Save