summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2009-01-13 16:45:36 +0000
committerMichael Sevakis <jethead71@rockbox.org>2009-01-13 16:45:36 +0000
commit6645e9b109eea6be54ff7d972d5508ba86068b16 (patch)
treefb939698e70599ff74a22cad7d1401b78d15a3ee /firmware
parent6da8b4eb4925f167588c868a64d2d057ca3bf85f (diff)
downloadrockbox-6645e9b109eea6be54ff7d972d5508ba86068b16.tar.gz
rockbox-6645e9b109eea6be54ff7d972d5508ba86068b16.zip
Fix red. Forgot to add a #ifdef HAVE_USB_POWER in one spot.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19763 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/usb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index b52a255c0a..7f09b59e08 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -301,11 +301,13 @@ static void usb_thread(void)
}
#endif /* HAVE_LCD_BITMAP */
#ifndef HAVE_USBSTACK /* Stack must undo this if POWERED state was transitional */
+#ifdef HAVE_USB_POWER
if(usb_state == USB_POWERED)
{
usb_state = USB_EXTRACTED;
break;
}
+#endif /* HAVE_USB_POWER */
#endif /* HAVE_USBSTACK */
if(usb_state == USB_INSERTED)
{