mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-14 01:37:25 -05:00
DMR: Disable LOCN unless SD PDU first octet is 0x01;
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user