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:
parent
e88c92a8dc
commit
bfdef3af9f
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue