summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-06-30 14:12:27 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-06-30 14:12:27 +0000
commit8523a441b43ada9f339bcca6442f4849f777e01f (patch)
tree0c39a1bdde4f277c90861ac4c9ae98104267a84c /apps/tree.c
parent8151236d337ca1368dfe0354f0968d3e9f4602fe (diff)
Even better USB handling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1267 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 2ca9a5124e..e95482127e 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -401,8 +401,15 @@ bool dirbrowse(char *root)
DEBUGF("dirbrowse got SYS_USB_CONNECTED\n");
usb_acknowledge(SYS_USB_CONNECTED_ACK);
+ usb_display_info();
+
/* Wait until the USB cable is extracted again */
usb_wait_for_disconnect(&button_queue);
+
+ /* Force a re-read of the root directory */
+ restore = 1;
+ strcpy(currdir, "/");
+ lastdir[0] = 0;
break;
}