mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-12-01 23:58:33 +00:00
Fix LCD button / newbutton issue (#13157)
This commit is contained in:
parent
cf70ce6ad2
commit
01674c5c8d
@ -5606,15 +5606,14 @@ void lcd_reset_alert_level() { lcd_status_message_level = 0; }
|
|||||||
|
|
||||||
#endif // LCD_HAS_DIRECTIONAL_BUTTONS
|
#endif // LCD_HAS_DIRECTIONAL_BUTTONS
|
||||||
|
|
||||||
buttons = newbutton;
|
|
||||||
#if ENABLED(LCD_HAS_SLOW_BUTTONS)
|
#if ENABLED(LCD_HAS_SLOW_BUTTONS)
|
||||||
buttons |= slow_buttons;
|
newbutton |= slow_buttons;
|
||||||
#endif
|
#endif
|
||||||
|
buttons = newbutton;
|
||||||
|
|
||||||
#if ENABLED(ADC_KEYPAD)
|
#if ENABLED(ADC_KEYPAD)
|
||||||
|
|
||||||
uint8_t newbutton_reprapworld_keypad = 0;
|
uint8_t newbutton_reprapworld_keypad = 0;
|
||||||
buttons = 0;
|
|
||||||
if (buttons_reprapworld_keypad == 0) {
|
if (buttons_reprapworld_keypad == 0) {
|
||||||
newbutton_reprapworld_keypad = get_ADC_keyValue();
|
newbutton_reprapworld_keypad = get_ADC_keyValue();
|
||||||
if (WITHIN(newbutton_reprapworld_keypad, 1, 8))
|
if (WITHIN(newbutton_reprapworld_keypad, 1, 8))
|
||||||
|
Loading…
Reference in New Issue
Block a user