mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-21 05:05:38 -05:00
ncurses bugfix
ncurses bugfix
This commit is contained in:
@@ -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
|
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);
|
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
|
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?
|
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);
|
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
|
//new printout on reading MBE files back in
|
||||||
if (opts->payload == 1) //make opt variable later on to toggle this
|
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
|
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?
|
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)
|
if (opts->payload == 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user