Bugfix: button ready state not correctly detected when menu drops back
This commit is contained in:
parent
81155887de
commit
9c94428144
@ -39,7 +39,8 @@ void menu_handle(struct lcd_menu *menu, int16_t rotary_encoder_delta, enum butto
|
|||||||
|
|
||||||
tmp = menu->active_entry;
|
tmp = menu->active_entry;
|
||||||
|
|
||||||
if (menu->active_entry_type == MENU_ENTRY_FIRST_ENTER && push_button != BUTTON_IDLE) {
|
if ((menu->active_entry_type == MENU_ENTRY_FIRST_ENTER || menu->active_entry_type == MENU_ENTRY_DROPBACK)
|
||||||
|
&& push_button != BUTTON_IDLE) {
|
||||||
menu->inputs.button_ready = false;
|
menu->inputs.button_ready = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user