1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jonathan Gordon 2007-09-04 08:14:47 +00:00
parent 1672350378
commit 95101c19f2

View file

@ -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);