mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-11 06:05:21 -05:00
Fix more red. Missed one other place it needed #ifdef HAVE_USB_POWER.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19764 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6645e9b109
commit
09484db740
1 changed files with 2 additions and 0 deletions
|
|
@ -256,10 +256,12 @@ static void usb_thread(void)
|
||||||
}
|
}
|
||||||
#endif /* HAVE_USB_POWER */
|
#endif /* HAVE_USB_POWER */
|
||||||
#ifdef HAVE_USBSTACK
|
#ifdef HAVE_USBSTACK
|
||||||
|
#ifdef HAVE_USB_POWER
|
||||||
/* Set the state to USB_POWERED for now. If permission to connect
|
/* Set the state to USB_POWERED for now. If permission to connect
|
||||||
* by threads and storage is granted it will be changed to
|
* by threads and storage is granted it will be changed to
|
||||||
* USB_CONNECTED. */
|
* USB_CONNECTED. */
|
||||||
usb_state = USB_POWERED;
|
usb_state = USB_POWERED;
|
||||||
|
#endif
|
||||||
usb_core_enable_driver(USB_DRIVER_MASS_STORAGE, true);
|
usb_core_enable_driver(USB_DRIVER_MASS_STORAGE, true);
|
||||||
usb_core_enable_driver(USB_DRIVER_CHARGING_ONLY, false);
|
usb_core_enable_driver(USB_DRIVER_CHARGING_ONLY, false);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue