summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-02-19 12:27:21 +0000
committerDave Chapman <dave@dchapman.com>2006-02-19 12:27:21 +0000
commit9e244e04a0bd2602efde1230480016865130162e (patch)
tree5b081e1efc23f4e4ee4bd1066f00a61381c94571 /firmware
parent8f1db26863c51264b9e71776c3761aa72ffcad39 (diff)
downloadrockbox-9e244e04a0bd2602efde1230480016865130162e.tar.gz
rockbox-9e244e04a0bd2602efde1230480016865130162e.tar.bz2
rockbox-9e244e04a0bd2602efde1230480016865130162e.zip
Fix red builds - only check for USB_POWERED status if HAVE_USB_POWER is defined.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8734 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/usb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 8f80070c24..5157eeec63 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -599,7 +599,11 @@ void usb_start_monitoring(void)
bool usb_inserted(void)
{
+#ifdef HAVE_USB_POWER
return usb_state == USB_INSERTED || usb_state == USB_POWERED;
+#else
+ return usb_state == USB_INSERTED;
+#endif
}
#ifdef HAVE_USB_POWER