summaryrefslogtreecommitdiff
path: root/apps/gui/yesno.c
diff options
context:
space:
mode:
authorDana Conrad <dconrad@fastmail.com>2021-05-16 15:01:26 -0500
committerDana Conrad <dconrad@fastmail.com>2021-05-27 19:58:09 -0500
commit8056b7fd1a333fe4d0c7ed8d3de0caf702f89164 (patch)
treec0b114af2cbfaa2ded440a2fc5c8b2b377613d9a /apps/gui/yesno.c
parent10d199f9d5bf85136211c0811e29679787343375 (diff)
Yes/No Screen: Allow accept to be button release
Allows the ACTION_YESNO_ACCEPT action to be set to a button release by ignoring certain system events. Moving USB init in main.c to the last thing to prevent getting stuck in the USB prompt, if enabled. Also changing ACTION_YESNO_ACCEPT to button release on erosq Change-Id: I5e7498521a13cb4e840223dd0b9c8633e99093bc
Diffstat (limited to 'apps/gui/yesno.c')
-rw-r--r--apps/gui/yesno.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c
index a50b2f1921..669f8ca09a 100644
--- a/apps/gui/yesno.c
+++ b/apps/gui/yesno.c
@@ -201,8 +201,13 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message,
result=YESNO_YES;
break;
case ACTION_NONE:
+ case ACTION_UNKNOWN:
case SYS_CHARGER_DISCONNECTED:
case SYS_BATTERY_UPDATE:
+ case SYS_TIMEOUT:
+#if CONFIG_CHARGING
+ case SYS_CHARGER_CONNECTED:
+#endif
/* ignore some SYS events that can happen */
continue;
default: