From 11d4b2b3301c6e65f111eb1d921c15c681ae75cc Mon Sep 17 00:00:00 2001 From: lwvmobile <59371473+lwvmobile@users.noreply.github.com> Date: Mon, 4 Apr 2022 16:32:53 -0400 Subject: [PATCH] ncurses bugfix ncurses bugfix --- src/dsd_file.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dsd_file.c b/src/dsd_file.c index 1666e23..64b96ff 100644 --- a/src/dsd_file.c +++ b/src/dsd_file.c @@ -46,7 +46,7 @@ saveImbe4400Data (dsd_opts * opts, dsd_state * state, char *imbe_d) } if (opts->payload == 1) //make opt variable later on to toggle this { - fprintf (stderr, "[%02X] ", b); + fprintf (stderr, "%02X", b); } fputc (b, opts->mbe_out_f); } @@ -85,11 +85,11 @@ saveAmbe2450Data (dsd_opts * opts, dsd_state * state, char *ambe_d) } if (opts->payload == 1 && i < 6) //make opt variable later on to toggle this { - fprintf (stderr, "[%02X] ", b); + fprintf (stderr, "%02X", b); } if (opts->payload == 1 && i == 6) //7th octet should only contain 1 bit? value will be either 0x00 or 0x80? { - fprintf (stderr, "[%02X] ", b & 0x80); //7th octet should only contain 1 bit? + fprintf (stderr, "%02X", b & 0x80); //7th octet should only contain 1 bit? } fputc (b, opts->mbe_out_f); @@ -140,7 +140,7 @@ readImbe4400Data (dsd_opts * opts, dsd_state * state, char *imbe_d) //new printout on reading MBE files back in if (opts->payload == 1) //make opt variable later on to toggle this { - fprintf (stderr, "[%02X] ", x); + fprintf (stderr, "%02X", x); } // } @@ -187,11 +187,11 @@ readAmbe2450Data (dsd_opts * opts, dsd_state * state, char *ambe_d) } if (opts->payload == 1 && i < 6) //make opt variable later on to toggle this { - fprintf (stderr, "[%02X] ", x); + fprintf (stderr, "%02X", x); } if (opts->payload == 1 && i == 6) //7th octet should only contain 1 bit? value will be either 0x00 or 0x80? { - fprintf (stderr, "[%02X] ", x & 0x80); //7th octet should only contain 1 bit? + fprintf (stderr, "%02X", x & 0x80); //7th octet should only contain 1 bit? } } if (opts->payload == 1)