From b798ea26490008bb01fbb0742e73040e1b4caf48 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Wed, 9 Sep 2020 16:39:08 +0200 Subject: [PATCH] Fix crash after touching below active menu --- ui.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui.c b/ui.c index 0587efb..abda101 100644 --- a/ui.c +++ b/ui.c @@ -1867,6 +1867,9 @@ menu_apply_touch(void) y += MENU_BUTTON_HEIGHT; continue; } + if (MT_MASK(menu[i].type) == MT_NONE) { + break; + } int active_button_start; if (menu[i].type & MT_FORM) { active_button_start = (LCD_WIDTH - MENU_FORM_WIDTH)/2;