Skip to content

Commit

Permalink
DMR refactoring: mobile voice processing. Debug (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
f4exb committed Sep 8, 2016
1 parent f552aa6 commit ab1ab5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dmr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ void DSDDMR::processVoiceMS()

processVoiceDibit(dibit);

if (m_symbolIndex == 132 - 1) // last dibit
if (m_symbolIndex == 144 - 1) // last dibit
{
m_voice1FrameCount++;
std::cerr << "DSDDMR::processVoiceMS: " << m_symbolIndex << " : " << m_voice1FrameCount << std::endl;
Expand All @@ -398,7 +398,7 @@ void DSDDMR::processVoiceMS()
void DSDDMR::processSkipMS()
{

if (m_symbolIndex == 132 - 1) // last dibit
if (m_symbolIndex == 144 - 1) // last dibit
{
std::cerr << "DSDDMR::processSkipMS: " << m_symbolIndex << std::endl;
// return to voice super frame
Expand Down Expand Up @@ -462,9 +462,9 @@ void DSDDMR::processVoiceFirstHalf(unsigned int shiftBack)

void DSDDMR::processVoiceFirstHalfMS()
{
unsigned char *dibit_p = m_dsdDecoder->m_dsdSymbol.getDibitBack(90+1); // no CACH with MS
unsigned char *dibit_p = m_dsdDecoder->m_dsdSymbol.getDibitBack(78+1); // no CACH with MS

for (m_symbolIndex = 0; m_symbolIndex < 90; m_symbolIndex++, m_cachSymbolIndex++)
for (m_symbolIndex = 12; m_symbolIndex < 90; m_symbolIndex++, m_cachSymbolIndex++)
{
processVoiceDibit(dibit_p[m_symbolIndex]);
}
Expand Down

0 comments on commit ab1ab5e

Please sign in to comment.