From 09484db74053b9a3618d6e5bdedcc1cf4c582b3b Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 13 Jan 2009 17:04:31 +0000 Subject: 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 --- firmware/usb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/usb.c b/firmware/usb.c index 7f09b59..e0f8e4c 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); -- cgit v1.1