summaryrefslogtreecommitdiffstats
path: root/apps/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/main.c b/apps/main.c
index 568a7efd09..9b9bae5098 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -230,6 +230,10 @@ void init(void)
usb_screen();
mounted = true; /* mounting done @ end of USB mode */
}
+#ifdef HAVE_USB_POWER
+ if (usb_powered()) /* avoid deadlock */
+ break;
+#endif
}
if (!mounted)