]> cvs.zerfleddert.de Git - hmcfgusb/commitdiff
fix culfw version-check
authorMichael Gernoth <michael@gernoth.net>
Fri, 14 Mar 2014 19:55:37 +0000 (20:55 +0100)
committerMichael Gernoth <michael@gernoth.net>
Fri, 14 Mar 2014 19:55:37 +0000 (20:55 +0100)
flash-ota.c

index 634e19b2b0db0c09af00ffb81d39114d6ad9d94c..5efd027c148d01070d76e87faab8d9aa5be20bdf 100644 (file)
@@ -435,11 +435,9 @@ int main(int argc, char **argv)
                        (rdata.version >> 8) & 0xff,
                        rdata.version & 0xff);
 
-               if (rdata.version < 0x0139) {
-                       fprintf(stderr, "\nThis version does _not_ support firmware upgrade mode!\n");
+               if (rdata.version < 0x013a) {
+                       fprintf(stderr, "\nThis version does _not_ support firmware upgrade mode, you need at least 1.58!\n");
                        exit(EXIT_FAILURE);
-               } else if (rdata.version < 0x0140) {
-                       printf("\n*** This version probably not supports firmware upgrade mode! ***\n\n");
                }
        } else {
                hmcfgusb_set_debug(debug);
Impressum, Datenschutz