DMR: Disable LOCN unless SD PDU first octet is 0x01;

This commit is contained in:
lwvmobile
2025-02-23 20:34:30 -05:00
parent 1d112a21cc
commit 5c177d671c

View File

@@ -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
}
}