diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2009-01-13 16:45:36 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2009-01-13 16:45:36 +0000 |
| commit | 6645e9b109eea6be54ff7d972d5508ba86068b16 (patch) | |
| tree | fb939698e70599ff74a22cad7d1401b78d15a3ee | |
| parent | 6da8b4eb4925f167588c868a64d2d057ca3bf85f (diff) | |
| download | rockbox-6645e9b109eea6be54ff7d972d5508ba86068b16.zip rockbox-6645e9b109eea6be54ff7d972d5508ba86068b16.tar.gz rockbox-6645e9b109eea6be54ff7d972d5508ba86068b16.tar.bz2 rockbox-6645e9b109eea6be54ff7d972d5508ba86068b16.tar.xz | |
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
| -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 b52a255..7f09b59 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) { |