Skip to content

Commit

Permalink
PFW-1531 Fix prusa3d#4300
Browse files Browse the repository at this point in the history
No change in memory
  • Loading branch information
gudnimg committed Aug 4, 2023
1 parent 035da6d commit 95d8711
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Firmware/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 95d8711

Please sign in to comment.