# HG changeset patch # User Mychaela Falconia # Date 1615094484 0 # Node ID f1cf569dbba3e1df73b82d03b3f06ced10d17b29 # Parent fc82f046448044831354d5399e480c7839e16dbb fc-simtool erase-file & update-rec-fill: make fill byte always hex diff -r fc82f0464480 -r f1cf569dbba3 simtool/erasefile.c --- a/simtool/erasefile.c Sun Mar 07 05:19:31 2021 +0000 +++ b/simtool/erasefile.c Sun Mar 07 05:21:24 2021 +0000 @@ -84,7 +84,7 @@ if (rc < 0) return(rc); if (argc > 2) { - fill_byte = strtoul(argv[2], 0, 0); + fill_byte = strtoul(argv[2], 0, 16); if (fill_byte > 0xFF) { fprintf(stderr, "error: invalid fill byte argument\n"); return(-1); diff -r fc82f0464480 -r f1cf569dbba3 simtool/writecmd.c --- a/simtool/writecmd.c Sun Mar 07 05:19:31 2021 +0000 +++ b/simtool/writecmd.c Sun Mar 07 05:21:24 2021 +0000 @@ -119,7 +119,7 @@ } mode = 0x04; } - fill_byte = strtoul(argv[2], 0, 0); + fill_byte = strtoul(argv[2], 0, 16); if (fill_byte > 0xFF) { fprintf(stderr, "error: invalid fill byte argument\n"); return(-1);