r2767 - trunk/src/host/dfu-util/src

laforge at sita.openmoko.org laforge at sita.openmoko.org
Tue Aug 21 21:08:05 CEST 2007


Author: laforge
Date: 2007-08-21 21:08:00 +0200 (Tue, 21 Aug 2007)
New Revision: 2767

Modified:
   trunk/src/host/dfu-util/src/sam7dfu.c
Log:
Some devices appear have race conditions and we need to use some ugly
hard-coded wait time. https://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=655 (Nick Hibma)


Modified: trunk/src/host/dfu-util/src/sam7dfu.c
===================================================================
--- trunk/src/host/dfu-util/src/sam7dfu.c	2007-08-21 19:05:10 UTC (rev 2766)
+++ trunk/src/host/dfu-util/src/sam7dfu.c	2007-08-21 19:08:00 UTC (rev 2767)
@@ -165,6 +165,9 @@
 	switch (dst.bState) {
 	case DFU_STATE_dfuMANIFEST_SYNC:
 	case DFU_STATE_dfuMANIFEST:
+		/* some devices (e.g. TAS1020b) need some time before we
+		 * can obtain the status */
+		sleep(1);
 		goto get_status;
 		break;
 	case DFU_STATE_dfuIDLE:





More information about the commitlog mailing list