Bugfix: button ready state not correctly detected when menu drops back

This commit is contained in:
Mario Hüttel 2021-04-10 13:24:15 +02:00
parent 81155887de
commit 9c94428144

View File

@ -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;
} }