summaryrefslogtreecommitdiffstats
path: root/bootloader/main-pp.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-09-04 08:14:47 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-09-04 08:14:47 +0000
commit95101c19f2f3e2ca1fef4d7003a62a1eebcc1877 (patch)
tree74fd15567260d5245f296ae69e523c1220af545e /bootloader/main-pp.c
parent1672350378c1eb218db319e35e7bf8fa457b1142 (diff)
downloadrockbox-95101c19f2f3e2ca1fef4d7003a62a1eebcc1877.tar.gz
rockbox-95101c19f2f3e2ca1fef4d7003a62a1eebcc1877.tar.bz2
rockbox-95101c19f2f3e2ca1fef4d7003a62a1eebcc1877.zip
dont bother waiting for a usb connection if we arnt getting usb power (speeds up the e200 bootloader by about 1.25s)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14601 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/main-pp.c')
-rw-r--r--bootloader/main-pp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bootloader/main-pp.c b/bootloader/main-pp.c
index 8b851394ac..0fa276708c 100644
--- a/bootloader/main-pp.c
+++ b/bootloader/main-pp.c
@@ -35,6 +35,7 @@
#include <string.h>
#ifdef SANSA_E200
#include "usb.h"
+#include "arcotg_udc.h"
#endif
@@ -460,7 +461,7 @@ void* main(void)
btn = button_read_device();
#ifdef SANSA_E200
usb_init();
- while (usb_retry < 5 && !usb)
+ while ((UDC_OTGSC&0x800) && usb_retry < 5 && !usb)
{
usb_retry++;
sleep(HZ/4);