diff options
author | Dave Chapman <dave@dchapman.com> | 2006-02-19 12:27:21 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-02-19 12:27:21 +0000 |
commit | 9e244e04a0bd2602efde1230480016865130162e (patch) | |
tree | 5b081e1efc23f4e4ee4bd1066f00a61381c94571 /firmware/usb.c | |
parent | 8f1db26863c51264b9e71776c3761aa72ffcad39 (diff) | |
download | rockbox-9e244e04a0bd2602efde1230480016865130162e.tar.gz 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/usb.c')
-rw-r--r-- | firmware/usb.c | 4 |
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 |