From 869a8bfbe785a6a569db2b23b47cc3ca84fffbb1 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 5 Nov 2020 14:20:07 -0500 Subject: YesNo: Clear the button queue so a latent keypress doesn't skip the prompt Change-Id: I055db211f3cceb38b2df00177451c08a3da33426 --- apps/gui/yesno.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c index e0d8ad457c..a50b2f1921 100644 --- a/apps/gui/yesno.c +++ b/apps/gui/yesno.c @@ -166,6 +166,7 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message, /* make sure to eat any extranous keypresses */ action_wait_for_release(); + button_clear_queue(); while (result==-1) { -- cgit v1.2.3