diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-30 14:12:27 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-30 14:12:27 +0000 |
commit | 8523a441b43ada9f339bcca6442f4849f777e01f (patch) | |
tree | 0c39a1bdde4f277c90861ac4c9ae98104267a84c /apps/tree.c | |
parent | 8151236d337ca1368dfe0354f0968d3e9f4602fe (diff) | |
download | rockbox-8523a441b43ada9f339bcca6442f4849f777e01f.tar.gz rockbox-8523a441b43ada9f339bcca6442f4849f777e01f.zip |
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.c | 7 |
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) | |||
401 | DEBUGF("dirbrowse got SYS_USB_CONNECTED\n"); | 401 | DEBUGF("dirbrowse got SYS_USB_CONNECTED\n"); |
402 | usb_acknowledge(SYS_USB_CONNECTED_ACK); | 402 | usb_acknowledge(SYS_USB_CONNECTED_ACK); |
403 | 403 | ||
404 | usb_display_info(); | ||
405 | |||
404 | /* Wait until the USB cable is extracted again */ | 406 | /* Wait until the USB cable is extracted again */ |
405 | usb_wait_for_disconnect(&button_queue); | 407 | usb_wait_for_disconnect(&button_queue); |
408 | |||
409 | /* Force a re-read of the root directory */ | ||
410 | restore = 1; | ||
411 | strcpy(currdir, "/"); | ||
412 | lastdir[0] = 0; | ||
406 | break; | 413 | break; |
407 | } | 414 | } |
408 | 415 | ||