From 0d2244fac0ea75b0f4640e1b5c1b05ffde7bcb5b Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Wed, 28 Sep 2022 16:56:11 -0400 Subject: [PATCH] Don't Log Null PDUs --- src/p25p1_tsbk.c | 2 +- src/p25p2_vpdu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p25p1_tsbk.c b/src/p25p1_tsbk.c index f202272..8316780 100644 --- a/src/p25p1_tsbk.c +++ b/src/p25p1_tsbk.c @@ -80,7 +80,7 @@ void processTSBK(dsd_opts * opts, dsd_state * state) } //convert tsbk_byte to PDU and send to vPDU handler...may or may not be entirely compatible, - PDU[0] = 0; //convert to MAC_SIGNAL + PDU[0] = 07; //P25p1 TSBK Duid 0x07 PDU[1] = tsbk_byte[0]; PDU[2] = tsbk_byte[2]; PDU[3] = tsbk_byte[3]; diff --git a/src/p25p2_vpdu.c b/src/p25p2_vpdu.c index 6154555..c61e8d5 100644 --- a/src/p25p2_vpdu.c +++ b/src/p25p2_vpdu.c @@ -485,7 +485,7 @@ void process_MAC_VPDU(dsd_opts * opts, dsd_state * state, int type, unsigned lon END_PDU: state->p2_is_lcch = 0; //debug printing - if (opts->payload == 1) //print only if not a null type //&& MAC[1] != 0 //&& MAC[2] != 0 + if (opts->payload == 1 && MAC[1] != 0) //print only if not a null type //&& MAC[1] != 0 //&& MAC[2] != 0 { fprintf (stderr, "%s", KCYN); fprintf (stderr, "\n P25 PDU Payload\n ");