Subversion Repositories public

Rev

Rev 214 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 214 Rev 230
Line 361... Line 361...
361
 
361
 
362
	if (method && garmin->usb.fd != -1)
362
	if (method && garmin->usb.fd != -1)
363
	{
363
	{
364
	   long theBytesReturned = 0;
364
	   long theBytesReturned = 0;
365
	   char *buf = (char *)p->data;
365
	   char *buf = (char *)p->data;
-
 
366
	   wait_flag = FALSE;
366
 
367
 
367
	   for(cnt = 0 ; cnt < 10 ; cnt++)
368
	   for(cnt = 0 ; cnt < 10 ; cnt++)
368
	   {
369
	   {
369
	      if (wait_flag != FALSE)
370
	      if (wait_flag != FALSE)
370
	      {
371
	      {
371
		 cnt--;
372
		 cnt--;
372
		 usleep (100000);
373
		 usleep (100000);
-
 
374
		 wait_flag = FALSE;
373
		 continue;
375
		 continue;
374
	      }
376
	      }
375
 
377
 
376
	      /* Read async data until the driver returns less than the
378
	      /* Read async data until the driver returns less than the
377
	       * max async data size, which signifies the end of a packet
379
	       * max async data size, which signifies the end of a packet