From dea37780ca8bd4fca93e6a097faebc2e00d1ec4e Mon Sep 17 00:00:00 2001 From: 7eggert <7eggert@gmx.de> Date: Thu, 14 Feb 2019 03:43:39 +0100 Subject: [PATCH] Fix LCD button / newbutton issue (#13157) --- Marlin/ultralcd.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Marlin/ultralcd.cpp b/Marlin/ultralcd.cpp index f605f8e3a3..fa2ce70e4a 100644 --- a/Marlin/ultralcd.cpp +++ b/Marlin/ultralcd.cpp @@ -5606,15 +5606,14 @@ void lcd_reset_alert_level() { lcd_status_message_level = 0; } #endif // LCD_HAS_DIRECTIONAL_BUTTONS - buttons = newbutton; #if ENABLED(LCD_HAS_SLOW_BUTTONS) - buttons |= slow_buttons; + newbutton |= slow_buttons; #endif + buttons = newbutton; #if ENABLED(ADC_KEYPAD) uint8_t newbutton_reprapworld_keypad = 0; - buttons = 0; if (buttons_reprapworld_keypad == 0) { newbutton_reprapworld_keypad = get_ADC_keyValue(); if (WITHIN(newbutton_reprapworld_keypad, 1, 8))