From e7a71eabb675c422d1ddcb1321e81003c055f948 Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Fri, 2 Jun 2023 16:42:38 -0400 Subject: [PATCH] Minor Fix to Call String; --- src/dmr_flco.c | 6 +++++- src/dsd_main.c | 2 +- src/dsd_ncurses.c | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/dmr_flco.c b/src/dmr_flco.c index e14bfc1..71963b1 100644 --- a/src/dmr_flco.c +++ b/src/dmr_flco.c @@ -342,7 +342,7 @@ void dmr_flco (dsd_opts * opts, dsd_state * state, uint8_t lc_bits[], uint32_t C state->payload_miR = 0; state->payload_keyidR = 0; } - sprintf (state->call_string[slot], "%s", " "); //21 spaces + } @@ -532,6 +532,10 @@ void dmr_flco (dsd_opts * opts, dsd_state * state, uint8_t lc_bits[], uint32_t C } END_FLCO: + + //blank the call string here if its a TLC + if (type == 2) sprintf (state->call_string[slot], "%s", " "); //21 spaces + if (unk == 1 || pf == 1) { fprintf(stderr, " FLCO=0x%02X FID=0x%02X ", flco, fid); diff --git a/src/dsd_main.c b/src/dsd_main.c index 94d036c..9535501 100644 --- a/src/dsd_main.c +++ b/src/dsd_main.c @@ -1358,7 +1358,7 @@ main (int argc, char **argv) } #ifdef AERO_BUILD - fprintf (stderr, "Build Version: v2.0.1-17 Win32 \n"); + fprintf (stderr, "Build Version: v2.0.1-18 Win32 \n"); #else fprintf (stderr, "Build Version: %s \n", GIT_TAG); #endif diff --git a/src/dsd_ncurses.c b/src/dsd_ncurses.c index 1dc0d29..d4729fc 100644 --- a/src/dsd_ncurses.c +++ b/src/dsd_ncurses.c @@ -2072,7 +2072,7 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state) if (opts->ncurses_compact == 1) { printw ("------------------------------------------------------------------------------\n"); - printw ("| Digital Speech Decoder: Florida Man Edition - Aero %s \n", "v2.0.1-17 Win32"); + printw ("| Digital Speech Decoder: Florida Man Edition - Aero %s \n", "v2.0.1-18 Win32"); printw ("------------------------------------------------------------------------------\n"); } #elif LIMAZULUTWEAKS @@ -2101,7 +2101,7 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state) if (i == 4) printw (" MBElib %s", versionstr); #ifdef AERO_BUILD if (i == 5) printw (" %s ", "Aero Win32"); - if (i == 6) printw (" v2.0.1-17 Win32 \n"); + if (i == 6) printw (" v2.0.1-18 Win32 \n"); #else if (i == 5) printw (" %s ", "zDEV BUILD"); if (i == 6) printw (" %s \n", GIT_TAG);