diff options
-rw-r--r-- | apps/plugins/playing_time.c | 7 |
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) | |||
351 | if (rb->list_do_action(CONTEXT_LIST, HZ/2, &pt_lists, &key) == 0 | 351 | if (rb->list_do_action(CONTEXT_LIST, HZ/2, &pt_lists, &key) == 0 |
352 | && key!=ACTION_NONE && key!=ACTION_UNKNOWN) | 352 | && key!=ACTION_NONE && key!=ACTION_UNKNOWN) |
353 | { | 353 | { |
354 | bool usb = rb->default_event_handler(key) == SYS_USB_CONNECTED; | ||
355 | |||
356 | if (!usb && IS_SYSEVENT(key)) | ||
357 | continue; | ||
358 | |||
354 | rb->talk_force_shutup(); | 359 | rb->talk_force_shutup(); |
355 | return(rb->default_event_handler(key) == SYS_USB_CONNECTED); | 360 | return usb; |
356 | } | 361 | } |
357 | 362 | ||
358 | } | 363 | } |