forked from len0rd/rockbox
Only show the usb screen once a real usb connection is established. In case other threads are slow in acknowledging the SYS_USB_CONNECTED message, tell the OS that the disk is not ready yet (the OS interprets this as "spinning up")
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16471 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5f1e1a5e5e
commit
f18d20ee36
4 changed files with 92 additions and 16 deletions
|
@ -460,6 +460,10 @@ static void usb_core_control_request_handler(struct usb_ctrlrequest* req)
|
|||
{
|
||||
if(usb_state == DEFAULT) {
|
||||
set_serial_descriptor();
|
||||
#ifdef USB_STORAGE
|
||||
if(usb_core_storage_enabled)
|
||||
usb_request_exclusive_ata();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef USB_BENCHMARK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue