From 5c177d671c762a6dd139f2bff76e61f9cfdaa943 Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Sun, 23 Feb 2025 20:34:30 -0500 Subject: [PATCH] DMR: Disable LOCN unless SD PDU first octet is 0x01; --- src/dmr_pdu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dmr_pdu.c b/src/dmr_pdu.c index eb5d59b..b482dca 100644 --- a/src/dmr_pdu.c +++ b/src/dmr_pdu.c @@ -47,11 +47,16 @@ void utf8_to_text (uint16_t len, uint8_t * input) void dmr_sd_pdu (dsd_opts * opts, dsd_state * state, uint16_t len, uint8_t * DMR_PDU) { - // if (DMR_PDU[0] == 0x01) //may not be needed now, unknown + if (DMR_PDU[0] == 0x01) //found some on another system that is 00 here, and not a Loction { utf8_to_text(len, DMR_PDU+23); dmr_locn(opts, state, len, DMR_PDU); } + else + { + utf8_to_text(len, DMR_PDU); //generic catch-all to see if anything relevant is there + // utf16_to_text(len, DMR_PDU); //generic catch-all to see if anything relevant is there + } }