Allow seperate Ids and bug fixing.

This commit is contained in:
Jonathan Naylor
2017-05-06 09:57:17 +01:00
parent 5b014604a1
commit 9a1334e36d
5 changed files with 78 additions and 32 deletions

View File

@@ -85,12 +85,13 @@ void CRewrite::processHeader(CDMRData& data, unsigned char dataType)
data.getData(buffer);
delete m_lc;
m_lc = NULL;
CDMRFullLC fullLC;
m_lc = fullLC.decode(buffer, dataType);
if (m_lc == NULL)
return;
if (m_lc == NULL) {
m_lc = new CDMRLC(FLCO_GROUP, data.getSrcId(), m_toTG);
m_embeddedLC.setLC(*m_lc);
}
m_lc->setDstId(m_toTG);