From aa77b9f37a7101c43cb6d8d819ddc2cc940408f9 Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Fri, 9 Feb 2018 17:43:26 -0300 Subject: [PATCH] Set LCSS in insertSilence --- DMRSlot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DMRSlot.cpp b/DMRSlot.cpp index 6eeee6c53..e08db32c2 100644 --- a/DMRSlot.cpp +++ b/DMRSlot.cpp @@ -2034,7 +2034,6 @@ void CDMRSlot::insertSilence(unsigned int count) CDMREMB emb; emb.setColorCode(m_colorCode); - emb.setLCSS(0U); for (unsigned int i = 0U; i < count; i++) { // Only use our silence frame if its AMBE audio data @@ -2048,7 +2047,8 @@ void CDMRSlot::insertSilence(unsigned int count) if (n == 0U) { CSync::addDMRAudioSync(data + 2U, m_duplex); } else { - m_netEmbeddedLC.getData(data + 2U, 0U); + unsigned char lcss = m_netEmbeddedLC.getData(data + 2U, n); + emb.setLCSS(lcss); emb.getData(data + 2U); }