From bb3685edd8a7ae1dcbbbb196b8b379bf3906c4ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Tue, 28 Jan 2003 16:08:10 +0000 Subject: Allow usb connect in ask_resume git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3176 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index 7a35ebe0a4..a918ecd8fa 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -492,8 +492,14 @@ bool ask_resume(void) #endif lcd_update(); - if (button_get(true) == BUTTON_PLAY) - return true; + switch (button_get(true)) { + case BUTTON_PLAY: + return true; + + case SYS_USB_CONNECTED: + usb_screen(); + break; + } if ( global_settings.resume == RESUME_ASK_ONCE) { global_settings.resume_index = -1; -- cgit v1.2.3