From 6090f1f8fd41d361d97b845f04e56b858926bbb7 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 1 Mar 2016 19:04:04 +0000 Subject: [PATCH] Add the Embedded LC to the fill-in audio. --- DMRSlot.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/DMRSlot.cpp b/DMRSlot.cpp index f70acfb..2cc676b 100644 --- a/DMRSlot.cpp +++ b/DMRSlot.cpp @@ -1307,11 +1307,10 @@ void CDMRSlot::insertSilence(unsigned int count) if (n == 0U) { CSync::addDMRAudioSync(data + 2U); } else { - // Set the Embedded LC to 0x00 - ::memset(data + 2U + 13U, 0x00U, 5U); + unsigned char lcss = m_netEmbeddedLC.getData(data + 2U, n); - // Color Code will have been set earlier - m_lastEMB.setLCSS(0U); + m_lastEMB.setColorCode(m_colorCode); + m_lastEMB.setLCSS(lcss); m_lastEMB.getData(data + 2U); }