Set LCSS in insertSilence

This commit is contained in:
Andy CA6JAU
2018-02-09 17:43:26 -03:00
parent 04934c5dcc
commit aa77b9f37a

View File

@@ -2034,7 +2034,6 @@ void CDMRSlot::insertSilence(unsigned int count)
CDMREMB emb; CDMREMB emb;
emb.setColorCode(m_colorCode); emb.setColorCode(m_colorCode);
emb.setLCSS(0U);
for (unsigned int i = 0U; i < count; i++) { for (unsigned int i = 0U; i < count; i++) {
// Only use our silence frame if its AMBE audio data // Only use our silence frame if its AMBE audio data
@@ -2048,7 +2047,8 @@ void CDMRSlot::insertSilence(unsigned int count)
if (n == 0U) { if (n == 0U) {
CSync::addDMRAudioSync(data + 2U, m_duplex); CSync::addDMRAudioSync(data + 2U, m_duplex);
} else { } else {
m_netEmbeddedLC.getData(data + 2U, 0U); unsigned char lcss = m_netEmbeddedLC.getData(data + 2U, n);
emb.setLCSS(lcss);
emb.getData(data + 2U); emb.getData(data + 2U);
} }