fix serdisplib build, add Id tag
[openwrt.git] / target / utils / src / addpattern.c
index 5298f7b..9962a67 100644 (file)
@@ -104,7 +104,7 @@ int main(int argc, char **argv)
        hdr = (struct code_header *) buf;
        memset(hdr, 0, sizeof(struct code_header));
 
-       while ((c = getopt(argc, argv, "i:o:p:gbv:012")) != -1) {
+       while ((c = getopt(argc, argv, "i:o:p:gbv:0124")) != -1) {
                switch (c) {
                        case 'i':
                                ifn = optarg;
@@ -138,7 +138,7 @@ int main(int argc, char **argv)
                                break;
                        case '4':
                                /* V4 firmware sets the flags to 0x1f */
-                               hdr->hw_ver = 1;
+                               hdr->hw_ver = 0;
                                hdr->flags = 0x1f;
                                break;
 
This page took 0.021476 seconds and 4 git commands to generate.