Fix menu items optimizations when extracting to functions.

Properly increment menu_item when the menu item is clicked so that you don't get multiple menu items clicked if in view (when the menu code is deduplicated to functions)
This commit is contained in:
Alex Voinea 2023-04-10 11:42:34 +02:00
parent e88c92a8dc
commit bfdef3af9f
No known key found for this signature in database
GPG Key ID: 37EDFD565CB33BAD
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ void menu_submenu_no_reset(menu_func_t submenu, const bool feedback)
uint8_t menu_item_ret(void)
{
lcd_draw_update = 2;
menu_item++;
return 1;
}