]> git.zerfleddert.de Git - hmcfgusb/blobdiff - flash-hmmoduart.c
flash-hmmoduart: small cleanups
[hmcfgusb] / flash-hmmoduart.c
index 9f2f29aa354ca445086d722c871d0c643992f1be..e8487d36e6e6fddec3f6c1a2afa2b09eea797465 100644 (file)
@@ -1,6 +1,6 @@
-/* flasher for HM-CFG-USB
+/* flasher for HM-MOD-UART
  *
- * Copyright (c) 2013-16 Michael Gernoth <michael@gernoth.net>
+ * Copyright (c) 2016 Michael Gernoth <michael@gernoth.net>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -61,7 +61,7 @@ void flash_hmmoduart_syntax(char *prog)
        fprintf(stderr, "Syntax: %s [options] -U /dev/ttyAMA0 filename.eq3\n\n", prog);
        fprintf(stderr, "Mandatory parameter:\n");
        fprintf(stderr, "\t-U device\tuse HM-MOD-UART on given device\n");
-       fprintf(stderr, "Possible options:\n");
+       fprintf(stderr, "\nOptional parameters:\n");
        fprintf(stderr, "\t-V\t\tshow version (" VERSION ")\n");
 
 }
@@ -87,8 +87,8 @@ int main(int argc, char **argv)
                                uart = optarg;
                                break;
                        case 'V':
-                               printf("flash-hmcfgusb " VERSION "\n");
-                               printf("Copyright (c) 2013-16 Michael Gernoth\n\n");
+                               printf("flash-hmmoduart " VERSION "\n");
+                               printf("Copyright (c) 2016 Michael Gernoth\n\n");
                                exit(EXIT_SUCCESS);
                        case 'h':
                        case ':':
@@ -177,7 +177,7 @@ int main(int argc, char **argv)
                } while (pfd < 0);
 
                if (rdata.ack != 0x0401) {
-                       fprintf(stderr, "\n\nError flashing block %d, status: %u\n", block, rdata.ack);
+                       fprintf(stderr, "\n\nError flashing block %d, status: %04x\n", block, rdata.ack);
                        exit(EXIT_FAILURE);
                }
 
Impressum, Datenschutz