From c4e2730cedaab2cf6138d98a16e063386b3f7c92 Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Wed, 21 Feb 2024 15:28:07 -0500 Subject: [PATCH] P25p2 - Trunking Slot Enabled Tweak; --- src/p25p2_xcch.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/p25p2_xcch.c b/src/p25p2_xcch.c index 101d1e4..8c72f79 100644 --- a/src/p25p2_xcch.c +++ b/src/p25p2_xcch.c @@ -370,6 +370,20 @@ void process_SACCH_MAC_PDU (dsd_opts * opts, dsd_state * state, int payload[180] process_MAC_VPDU(opts, state, 1, SMAC); fprintf (stderr, "%s", KNRM); + if (opts->p25_trunk == 1 && opts->p25_is_tuned == 1) + { + if (state->currentslot == 1) + { + opts->slot1_on = 0; + opts->slot2_on = 1; + } + else + { + opts->slot1_on = 1; + opts->slot2_on = 0; + } + } + //blank the call string here -- slot variable is already flipped accordingly for sacch sprintf (state->call_string[slot], "%s", " "); //21 spaces @@ -742,6 +756,20 @@ void process_FACCH_MAC_PDU (dsd_opts * opts, dsd_state * state, int payload[156] process_MAC_VPDU(opts, state, 0, FMAC); fprintf (stderr, "%s", KNRM); + if (opts->p25_trunk == 1 && opts->p25_is_tuned == 1) + { + if (state->currentslot == 0) + { + opts->slot1_on = 0; + opts->slot2_on = 1; + } + else + { + opts->slot1_on = 1; + opts->slot2_on = 0; + } + } + //blank the call string here sprintf (state->call_string[slot], "%s", " "); //21 spaces