diff options
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/main.c b/apps/main.c index 60164515fa..211f7f1b3c 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -586,7 +586,8 @@ static void init(void) | |||
586 | mounted = true; /* mounting done @ end of USB mode */ | 586 | mounted = true; /* mounting done @ end of USB mode */ |
587 | } | 587 | } |
588 | #ifdef HAVE_USB_POWER | 588 | #ifdef HAVE_USB_POWER |
589 | if (usb_powered()) /* avoid deadlock */ | 589 | /* if there is no host or user requested no USB, skip this */ |
590 | if (usb_powered_only()) | ||
590 | break; | 591 | break; |
591 | #endif | 592 | #endif |
592 | } | 593 | } |