forked from len0rd/rockbox
Set usb_state to USB_POWERED on plugin for software usb device. Otherwise, the state would remain USB_EXTRACTED when connected to a charger
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16752 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
554d7ed902
commit
7e56df03bf
1 changed files with 3 additions and 0 deletions
|
@ -199,6 +199,9 @@ static void usb_thread(void)
|
|||
#endif
|
||||
{
|
||||
#ifdef HAVE_USBSTACK
|
||||
/* Set the state to USB_POWERED for now. if a real
|
||||
connection is detected it will switch to USB_INSERTED */
|
||||
usb_state = USB_POWERED;
|
||||
usb_core_enable_driver(USB_DRIVER_MASS_STORAGE,true);
|
||||
usb_core_enable_driver(USB_DRIVER_CHARGING_ONLY,false);
|
||||
usb_enable(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue