From 6f05899f429e2138c89182251c4c4a8872369dda Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Mon, 10 Mar 2008 19:11:37 +0000 Subject: don't do early usb detection on device with software stack. This doesn't work properly when booting while the device is plugged in to a power-only USB cable, and on sansa the microSD slot doesn't work here. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16611 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') 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) #endif usb_start_monitoring(); +#ifndef HAVE_USBSTACK while (usb_detect() == USB_INSERTED) { #ifdef HAVE_EEPROM_SETTINGS @@ -463,15 +464,14 @@ static void init(void) #endif { usb_screen(); -#ifndef HAVE_USBSTACK mounted = true; /* mounting done @ end of USB mode */ -#endif } #ifdef HAVE_USB_POWER if (usb_powered()) /* avoid deadlock */ break; #endif } +#endif if (!mounted) { -- cgit v1.2.3