mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
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:
parent
6da8b4eb49
commit
6645e9b109
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue