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:
parent
1672350378
commit
95101c19f2
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue