Changeset 2765


Ignore:
Timestamp:
08/21/07 20:59:58 (6 years ago)
Author:
laforge
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/host/dfu-util/src/main.c

    r1574 r2765  
    508508                        break; 
    509509                default: 
    510                         fprintf(stderr, "IMPOSSIBLE: Runtime device already in DFU state ?!?\n"); 
    511                         exit(1); 
     510                        fprintf(stderr, "WARNING: Runtime device already in DFU state ?!?\n"); 
     511                        goto dfustate; 
    512512                        break; 
    513513                } 
     
    541541        } 
    542542 
     543dfustate: 
    543544        if (alt_name) { 
    544545                int n; 
Note: See TracChangeset for help on using the changeset viewer.