diff options
-rw-r--r-- | apps/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/main.c b/apps/main.c index 15dd1bcef9..598597520f 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -450,6 +450,7 @@ static void init(void) | |||
450 | #endif | 450 | #endif |
451 | 451 | ||
452 | usb_start_monitoring(); | 452 | usb_start_monitoring(); |
453 | #ifndef HAVE_USBSTACK | ||
453 | while (usb_detect() == USB_INSERTED) | 454 | while (usb_detect() == USB_INSERTED) |
454 | { | 455 | { |
455 | #ifdef HAVE_EEPROM_SETTINGS | 456 | #ifdef HAVE_EEPROM_SETTINGS |
@@ -463,15 +464,14 @@ static void init(void) | |||
463 | #endif | 464 | #endif |
464 | { | 465 | { |
465 | usb_screen(); | 466 | usb_screen(); |
466 | #ifndef HAVE_USBSTACK | ||
467 | mounted = true; /* mounting done @ end of USB mode */ | 467 | mounted = true; /* mounting done @ end of USB mode */ |
468 | #endif | ||
469 | } | 468 | } |
470 | #ifdef HAVE_USB_POWER | 469 | #ifdef HAVE_USB_POWER |
471 | if (usb_powered()) /* avoid deadlock */ | 470 | if (usb_powered()) /* avoid deadlock */ |
472 | break; | 471 | break; |
473 | #endif | 472 | #endif |
474 | } | 473 | } |
474 | #endif | ||
475 | 475 | ||
476 | if (!mounted) | 476 | if (!mounted) |
477 | { | 477 | { |