Consume lcd_encoder_diff in lcd_show_fullscreen_message_yes_no_and_wait_P().

This fixes problem encountered in lcd_v2_calibration(). Selected menu item skips to another if returning to menu after this message is used.
This commit is contained in:
Marek Bel 2019-09-12 20:20:33 +02:00
parent d48197656c
commit 6630591f9e

View File

@ -3591,6 +3591,7 @@ int8_t lcd_show_fullscreen_message_yes_no_and_wait_P(const char *msg, bool allow
if (lcd_clicked()) { if (lcd_clicked()) {
Sound_MakeSound(e_SOUND_TYPE_ButtonEcho); Sound_MakeSound(e_SOUND_TYPE_ButtonEcho);
KEEPALIVE_STATE(IN_HANDLER); KEEPALIVE_STATE(IN_HANDLER);
lcd_encoder_diff = 0;
return yes; return yes;
} }
} }