forked from len0rd/rockbox
Even better USB handling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1267 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8151236d33
commit
8523a441b4
1 changed files with 7 additions and 0 deletions
|
|
@ -401,8 +401,15 @@ bool dirbrowse(char *root)
|
||||||
DEBUGF("dirbrowse got SYS_USB_CONNECTED\n");
|
DEBUGF("dirbrowse got SYS_USB_CONNECTED\n");
|
||||||
usb_acknowledge(SYS_USB_CONNECTED_ACK);
|
usb_acknowledge(SYS_USB_CONNECTED_ACK);
|
||||||
|
|
||||||
|
usb_display_info();
|
||||||
|
|
||||||
/* Wait until the USB cable is extracted again */
|
/* Wait until the USB cable is extracted again */
|
||||||
usb_wait_for_disconnect(&button_queue);
|
usb_wait_for_disconnect(&button_queue);
|
||||||
|
|
||||||
|
/* Force a re-read of the root directory */
|
||||||
|
restore = 1;
|
||||||
|
strcpy(currdir, "/");
|
||||||
|
lastdir[0] = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue