1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-26 21:36:21 +00:00

Init ADC keypad analog input (#14585)

This commit is contained in:
Pavel4e5 2019-07-11 23:47:41 +05:00 committed by Scott Lahteine
parent 948c3f580b
commit 8babf55b18

View File

@ -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();