Ignore bad LC on network LC headers.
This commit is contained in:
parent
34672a02ba
commit
acf43628fb
|
@ -350,8 +350,8 @@ void CDMRSlot::writeNetwork(const CDMRData& dmrData)
|
||||||
CFullLC fullLC;
|
CFullLC fullLC;
|
||||||
m_lc = fullLC.decode(data + 2U, DT_VOICE_LC_HEADER);
|
m_lc = fullLC.decode(data + 2U, DT_VOICE_LC_HEADER);
|
||||||
if (m_lc == NULL) {
|
if (m_lc == NULL) {
|
||||||
LogMessage("DMR Slot %u, bad LC received, substituting", m_slotNo);
|
LogMessage("DMR Slot %u, bad LC received from the network", m_slotNo);
|
||||||
m_lc = new CLC(dmrData.getFLCO(), dmrData.getSrcId(), dmrData.getDstId());
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Regenerate the LC
|
// Regenerate the LC
|
||||||
|
|
Loading…
Reference in a new issue