forked from len0rd/rockbox
Make it not reboot when plugged into a wall charger with USE_ROCKBOX_USB diabled as well...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16472 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f18d20ee36
commit
014568590d
1 changed files with 0 additions and 4 deletions
|
@ -199,14 +199,10 @@ static void usb_thread(void)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#ifdef HAVE_USBSTACK
|
#ifdef HAVE_USBSTACK
|
||||||
#ifdef USE_ROCKBOX_USB
|
|
||||||
usb_core_enable_protocol(USB_DRIVER_MASS_STORAGE,true);
|
usb_core_enable_protocol(USB_DRIVER_MASS_STORAGE,true);
|
||||||
usb_core_enable_protocol(USB_DRIVER_SERIAL,false);/* TODO: add debug setting */
|
usb_core_enable_protocol(USB_DRIVER_SERIAL,false);/* TODO: add debug setting */
|
||||||
usb_core_enable_protocol(USB_DRIVER_CHARGING_ONLY,false);
|
usb_core_enable_protocol(USB_DRIVER_CHARGING_ONLY,false);
|
||||||
usb_enable(true);
|
usb_enable(true);
|
||||||
#else
|
|
||||||
usb_request_exclusive_ata();
|
|
||||||
#endif /* USE_ROCKBOX_USB */
|
|
||||||
#else
|
#else
|
||||||
/* Tell all threads that they have to back off the ATA.
|
/* Tell all threads that they have to back off the ATA.
|
||||||
We subtract one for our own thread. */
|
We subtract one for our own thread. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue