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:
parent
8f1db26863
commit
9e244e04a0
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue