r2765 - trunk/src/host/dfu-util/src

laforge at sita.openmoko.org laforge at sita.openmoko.org
Tue Aug 21 21:00:02 CEST 2007


Author: laforge
Date: 2007-08-21 20:59:58 +0200 (Tue, 21 Aug 2007)
New Revision: 2765

Modified:
   trunk/src/host/dfu-util/src/main.c
Log:
According to http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=653
there are some devices that violate the DFU spec slightly by starting up in the
DFU state insteade of application state. This patch fixes it (Nick Hibma)


Modified: trunk/src/host/dfu-util/src/main.c
===================================================================
--- trunk/src/host/dfu-util/src/main.c	2007-08-21 18:47:23 UTC (rev 2764)
+++ trunk/src/host/dfu-util/src/main.c	2007-08-21 18:59:58 UTC (rev 2765)
@@ -507,8 +507,8 @@
 			}
 			break;
 		default:
-			fprintf(stderr, "IMPOSSIBLE: Runtime device already in DFU state ?!?\n");
-			exit(1);
+			fprintf(stderr, "WARNING: Runtime device already in DFU state ?!?\n");
+			goto dfustate;
 			break;
 		}
 
@@ -540,6 +540,7 @@
 		 * procedure */
 	}
 
+dfustate:
 	if (alt_name) {
 		int n;
 





More information about the commitlog mailing list