Big oops. Should be broadcasting SYS_USB_DISCONNECTED _after_ remouting disks.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29150 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ac7fe5fb82
commit
b4fa66d7c7
1 changed files with 3 additions and 2 deletions
|
@ -481,14 +481,15 @@ static void usb_thread(void)
|
|||
if(usb_state == USB_EXTRACTED)
|
||||
break;
|
||||
|
||||
usb_configure_drivers(USB_EXTRACTED);
|
||||
|
||||
/* Only disable the USB slave mode if we really have enabled
|
||||
it. Some expected acks may not have been received. */
|
||||
if(usb_state == USB_INSERTED)
|
||||
usb_slave_mode(false);
|
||||
|
||||
usb_state = USB_EXTRACTED;
|
||||
|
||||
/* Ok to broadcast disconnect now */
|
||||
usb_configure_drivers(USB_EXTRACTED);
|
||||
break;
|
||||
/* USB_UNPOWERED: USB_EXTRACTED: */
|
||||
|
||||
|
|
Loading…
Reference in a new issue