summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2004-01-20 22:39:32 +0000
committerBjörn Stenberg <bjorn@haxx.se>2004-01-20 22:39:32 +0000
commit989123006c2aed8ee9436cafdfc6c8ff9cd3fcea (patch)
treee91477cd4c1e896a27b0d5debe11217e2195ced5
parentc0b90ec4d9fcf1356abcb39f726f6481156ecdf2 (diff)
downloadrockbox-989123006c2aed8ee9436cafdfc6c8ff9cd3fcea.tar.gz
rockbox-989123006c2aed8ee9436cafdfc6c8ff9cd3fcea.zip
Check USB before resuming
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4266 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index ae3cb3c2da..9e1a22f567 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -550,6 +550,11 @@ static bool ask_resume(bool ask_once)
lcd_double_height(false);
#endif
+ if (usb_detect()) {
+ usb_screen();
+ return false;
+ }
+
/* always resume? */
if ( global_settings.resume == RESUME_ON )
return true;