From d285865de53597ee9818d0ce3582d9176aea199a Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Thu, 22 May 2025 06:17:19 -0400 Subject: [PATCH] DMR: Don't append spaces to talker alias string if encoded character is 0; #290 (usually indicates the full talker alias has yet to arrive and only doing a partial in progress decode); --- src/dsd_alias.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/dsd_alias.c b/src/dsd_alias.c index a054f45..fb5b8cb 100644 --- a/src/dsd_alias.c +++ b/src/dsd_alias.c @@ -754,6 +754,12 @@ void dmr_talker_alias_lc_decode (dsd_opts * opts, dsd_state * state, uint8_t slo fprintf (stderr, "%c", character); strcat (alias_string, ch); } + else if (character == 0) + { + // strcat (alias_string, " "); + // fprintf (stderr, " "); + // break; + } else { strcat (alias_string, " "); @@ -773,6 +779,12 @@ void dmr_talker_alias_lc_decode (dsd_opts * opts, dsd_state * state, uint8_t slo fprintf (stderr, "%c", character); strcat (alias_string, ch); } + else if (character == 0) + { + // strcat (alias_string, " "); + // fprintf (stderr, " "); + // break; + } else { strcat (alias_string, " "); @@ -792,6 +804,12 @@ void dmr_talker_alias_lc_decode (dsd_opts * opts, dsd_state * state, uint8_t slo fprintf (stderr, "%lc", character); strcat (alias_string, ch); } + else if (character == 0) + { + // strcat (alias_string, " "); + // fprintf (stderr, " "); + // break; + } else { strcat (alias_string, " ");