forked from len0rd/rockbox
iRiver: mpeg_thread now correctly responds to SYS_USB_DISCONNECT
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5911 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6805475fb9
commit
3cac79e68f
1 changed files with 3 additions and 0 deletions
|
@ -1998,6 +1998,9 @@ static void mpeg_thread(void)
|
|||
/* Tell the USB thread that we are safe */
|
||||
DEBUGF("mpeg_thread got SYS_USB_CONNECTED\n");
|
||||
usb_acknowledge(SYS_USB_CONNECTED_ACK);
|
||||
|
||||
/* Wait until the USB cable is extracted again */
|
||||
usb_wait_for_disconnect(&mpeg_queue);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue