diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2009-01-13 17:04:31 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2009-01-13 17:04:31 +0000 |
commit | 09484db74053b9a3618d6e5bdedcc1cf4c582b3b (patch) | |
tree | 75cbea7d8d845d9ad7dfade6940acbe0801a1b03 /firmware/usb.c | |
parent | 6645e9b109eea6be54ff7d972d5508ba86068b16 (diff) | |
download | rockbox-09484db74053b9a3618d6e5bdedcc1cf4c582b3b.tar.gz rockbox-09484db74053b9a3618d6e5bdedcc1cf4c582b3b.zip |
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
Diffstat (limited to 'firmware/usb.c')
-rw-r--r-- | firmware/usb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index 7f09b59e08..e0f8e4c22a 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -256,10 +256,12 @@ static void usb_thread(void) } #endif /* HAVE_USB_POWER */ #ifdef HAVE_USBSTACK +#ifdef HAVE_USB_POWER /* Set the state to USB_POWERED for now. If permission to connect * by threads and storage is granted it will be changed to * USB_CONNECTED. */ usb_state = USB_POWERED; +#endif usb_core_enable_driver(USB_DRIVER_MASS_STORAGE, true); usb_core_enable_driver(USB_DRIVER_CHARGING_ONLY, false); |