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
This commit is contained in:
Dave Chapman 2006-02-19 12:27:21 +00:00
parent 8f1db26863
commit 9e244e04a0

View file

@ -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