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
This commit is contained in:
Michael Sevakis 2009-01-13 16:45:36 +00:00
parent 6da8b4eb49
commit 6645e9b109

View file

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