diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2008-03-02 00:15:02 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2008-03-02 00:15:02 +0000 |
| commit | f18d20ee36f8a23e0f37fd342cf186e3b6a91408 (patch) | |
| tree | d5917d19491bc5fa80c61ea440279c4ed168c91f /firmware/usbstack/usb_core.c | |
| parent | 5f1e1a5e5efd9051c9aeda5a8cd671e523bac6e9 (diff) | |
| download | rockbox-f18d20ee36f8a23e0f37fd342cf186e3b6a91408.zip rockbox-f18d20ee36f8a23e0f37fd342cf186e3b6a91408.tar.gz rockbox-f18d20ee36f8a23e0f37fd342cf186e3b6a91408.tar.bz2 rockbox-f18d20ee36f8a23e0f37fd342cf186e3b6a91408.tar.xz | |
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
Diffstat (limited to 'firmware/usbstack/usb_core.c')
| -rw-r--r-- | firmware/usbstack/usb_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c index aa0f06e..f40d76b 100644 --- a/firmware/usbstack/usb_core.c +++ b/firmware/usbstack/usb_core.c @@ -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 |