summaryrefslogtreecommitdiffstats
path: root/apps/plugins/playing_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/playing_time.c')
-rw-r--r--apps/plugins/playing_time.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/playing_time.c b/apps/plugins/playing_time.c
index 942513c499..354c5a3e06 100644
--- a/apps/plugins/playing_time.c
+++ b/apps/plugins/playing_time.c
@@ -351,8 +351,13 @@ static bool playing_time(void)
if (rb->list_do_action(CONTEXT_LIST, HZ/2, &pt_lists, &key) == 0
&& key!=ACTION_NONE && key!=ACTION_UNKNOWN)
{
+ bool usb = rb->default_event_handler(key) == SYS_USB_CONNECTED;
+
+ if (!usb && IS_SYSEVENT(key))
+ continue;
+
rb->talk_force_shutup();
- return(rb->default_event_handler(key) == SYS_USB_CONNECTED);
+ return usb;
}
}