diff --git a/ui.c b/ui.c index d5bc809..d87cfb4 100644 --- a/ui.c +++ b/ui.c @@ -961,12 +961,13 @@ void drawMessageBox(char *header, char *text, uint32_t delay){ } static void -draw_keypad(void) +draw_keypad(uint32_t mask) { - int i = 0; + int i; ui_button_t button; button.fg = LCD_MENU_TEXT_COLOR; - while (keypads[i].c >= 0) { + for(i = 0; keypads[i].c >= 0; i++) { + if ((mask&(1< keypads_last_index) selection = 0; - draw_keypad(); - s = btn_wait_release(); - } while (s != 0); + draw_keypad(mask|(1<