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) current = CURRENT_NORMAL; #endif /* MEM == 8 */ - if(usb_inserted()) { + if(usb_inserted() +#ifdef HAVE_USB_POWER + || usb_powered() +#endif + ) + { current = CURRENT_USB; } |