Skip to content

Commit

Permalink
Set LCSS in insertSilence
Browse files Browse the repository at this point in the history
  • Loading branch information
juribeparada committed Feb 9, 2018
1 parent 04934c5 commit aa77b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DMRSlot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}

Expand Down

0 comments on commit aa77b9f

Please sign in to comment.