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;
break;
case '4':
/* V4 firmware sets the flags to 0x1f */
- hdr->hw_ver = 1;
+ hdr->hw_ver = 0;
hdr->flags = 0x1f;
break;