Browse Source

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.
Marek Bel 5 years ago
parent
commit
6630591f9e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Firmware/ultralcd.cpp

+ 1 - 0
Firmware/ultralcd.cpp

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