From 56adbfe6fdf7dcf039d2fdb3d9c8cfb48f287382 Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Sat, 23 Dec 2023 06:28:59 -0500 Subject: [PATCH] DMR - Fix Line Break on SLC CRC ERR; --- src/dmr_flco.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/dmr_flco.c b/src/dmr_flco.c index 80f9eed..6b0e186 100644 --- a/src/dmr_flco.c +++ b/src/dmr_flco.c @@ -787,11 +787,17 @@ uint8_t dmr_cach (dsd_opts * opts, dsd_state * state, uint8_t cach_bits[25]) if (h1 && h2 && h3 && crc) dmr_slco (opts, state, slco_bits); else { - if (opts->payload == 0) fprintf (stderr, "\n"); + //this line break issue is wracking on my OCD for clean line breaks + if (opts->payload == 1 && state->dmrburstL == 16 && state->currentslot == 0) ; //no line break if current slot is voice with payload enabled + else if (opts->payload == 1 && state->dmrburstR == 16 && state->currentslot == 1) ; //no line break if current slot is voice with payload enabled + else fprintf (stderr, "\n"); fprintf (stderr, "%s", KRED); fprintf (stderr, " SLCO CRC ERR"); fprintf (stderr, "%s", KNRM); - if (opts->payload == 1) fprintf (stderr, "\n"); + if (opts->payload == 1 && state->dmrburstL == 16 && state->currentslot == 0) //if current slot is voice with payload enabled + fprintf (stderr, "\n"); + else if (opts->payload == 1 && state->dmrburstR == 16 && state->currentslot == 1) //if current slot is voice with payload enabled + fprintf (stderr, "\n"); } }