diff options
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index bb2e6755cb..3eab4131d1 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -437,7 +437,12 @@ static int runcurrent(void) | |||
437 | current = CURRENT_NORMAL; | 437 | current = CURRENT_NORMAL; |
438 | #endif /* MEM == 8 */ | 438 | #endif /* MEM == 8 */ |
439 | 439 | ||
440 | if(usb_inserted()) { | 440 | if(usb_inserted() |
441 | #ifdef HAVE_USB_POWER | ||
442 | || usb_powered() | ||
443 | #endif | ||
444 | ) | ||
445 | { | ||
441 | current = CURRENT_USB; | 446 | current = CURRENT_USB; |
442 | } | 447 | } |
443 | 448 | ||