1
0
Fork 0
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:
Frank Gevaerts 2008-03-02 00:32:20 +00:00
parent f18d20ee36
commit 014568590d

View file

@ -199,14 +199,10 @@ static void usb_thread(void)
#endif
{
#ifdef HAVE_USBSTACK
#ifdef USE_ROCKBOX_USB
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_CHARGING_ONLY,false);
usb_enable(true);
#else
usb_request_exclusive_ata();
#endif /* USE_ROCKBOX_USB */
#else
/* Tell all threads that they have to back off the ATA.
We subtract one for our own thread. */