diff options
Diffstat (limited to 'apps/main.c')
-rw-r--r-- | apps/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/main.c b/apps/main.c index 4e66a851f1..8a1f0a986c 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -141,6 +141,10 @@ static void app_main(void) | |||
141 | viewportmanager_set_statusbar(true); | 141 | viewportmanager_set_statusbar(true); |
142 | add_event(GUI_EVENT_STATUSBAR_TOGGLE, false, | 142 | add_event(GUI_EVENT_STATUSBAR_TOGGLE, false, |
143 | viewportmanager_statusbar_changed); | 143 | viewportmanager_statusbar_changed); |
144 | #ifdef HAVE_USBSTACK | ||
145 | /* All threads should be created and public queues registered by now */ | ||
146 | usb_start_monitoring(); | ||
147 | #endif | ||
144 | root_menu(); | 148 | root_menu(); |
145 | } | 149 | } |
146 | 150 | ||
@@ -454,8 +458,8 @@ static void init(void) | |||
454 | eeprom_settings_init(); | 458 | eeprom_settings_init(); |
455 | #endif | 459 | #endif |
456 | 460 | ||
457 | usb_start_monitoring(); | ||
458 | #ifndef HAVE_USBSTACK | 461 | #ifndef HAVE_USBSTACK |
462 | usb_start_monitoring(); | ||
459 | while (usb_detect() == USB_INSERTED) | 463 | while (usb_detect() == USB_INSERTED) |
460 | { | 464 | { |
461 | #ifdef HAVE_EEPROM_SETTINGS | 465 | #ifdef HAVE_EEPROM_SETTINGS |