PFW-1531 Fix #4300

No change in memory
This commit is contained in:
Guðni Már Gilbert 2023-08-04 10:03:45 +00:00
parent 035da6d061
commit 95d8711469
1 changed files with 5 additions and 1 deletions

View File

@ -3108,7 +3108,11 @@ uint8_t lcd_show_multiscreen_message_with_choices_and_wait_P(
exit:
KEEPALIVE_STATE(IN_HANDLER);
lcd_set_custom_characters();
lcd_update_enable(true);
// Enable LCD updates again. We may not call lcd_update_enable(true)
// because it may create a recursion scenario when the caller of lcd_show_multiscreen_message_with_choices_and_wait_P
// is a submenu lcd_update_enable(true) will cause another call to the submenu immediately
// and so won't allow the user to exit the submenu
lcd_update_enabled = true;
return current_selection;
}