From 8babf55b181841a272ee25f44e86abf5b0d9f94a Mon Sep 17 00:00:00 2001 From: Pavel4e5 <50713272+Pavel4e5@users.noreply.github.com> Date: Thu, 11 Jul 2019 23:47:41 +0500 Subject: [PATCH] Init ADC keypad analog input (#14585) --- Marlin/src/module/temperature.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Marlin/src/module/temperature.cpp b/Marlin/src/module/temperature.cpp index d7e4423bc4..b6d35b9534 100644 --- a/Marlin/src/module/temperature.cpp +++ b/Marlin/src/module/temperature.cpp @@ -1675,6 +1675,9 @@ void Temperature::init() { #if ENABLED(FILAMENT_WIDTH_SENSOR) HAL_ANALOG_SELECT(FILWIDTH_PIN); #endif + #if HAS_ADC_BUTTONS + HAL_ANALOG_SELECT(ADC_KEYPAD_PIN); + #endif HAL_timer_start(TEMP_TIMER_NUM, TEMP_TIMER_FREQUENCY); ENABLE_TEMPERATURE_INTERRUPT();