From f18d20ee36f8a23e0f37fd342cf186e3b6a91408 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sun, 2 Mar 2008 00:15:02 +0000 Subject: 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 --- firmware/usbstack/usb_core.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/usbstack/usb_core.c') diff --git a/firmware/usbstack/usb_core.c b/firmware/usbstack/usb_core.c index aa0f06e4f6..f40d76bee0 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 -- cgit v1.2.3