mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 16:25:45 +08:00
Handle corrupted network DMR LCs more gracefully.
This commit is contained in:
@@ -766,8 +766,8 @@ void CDMRSlot::writeNetwork(const CDMRData& dmrData)
|
|||||||
CDMRFullLC fullLC;
|
CDMRFullLC fullLC;
|
||||||
m_netLC = fullLC.decode(data + 2U, DT_VOICE_LC_HEADER);
|
m_netLC = fullLC.decode(data + 2U, DT_VOICE_LC_HEADER);
|
||||||
if (m_netLC == NULL) {
|
if (m_netLC == NULL) {
|
||||||
LogMessage("DMR Slot %u, bad LC received from the network", m_slotNo);
|
LogMessage("DMR Slot %u, bad LC received from the network, replacing", m_slotNo);
|
||||||
return;
|
m_netLC = new CDMRLC(dmrData.getFLCO(), dmrData.getSrcId(), dmrData.getDstId());
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int did = m_netLC->getDstId();
|
unsigned int did = m_netLC->getDstId();
|
||||||
|
|||||||
Reference in New Issue
Block a user