Skip to content

Commit

Permalink
Fix DMREMB fec decode bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnchain committed Dec 7, 2019
1 parent ed7f593 commit 31408d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DMREMB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ void CDMREMB::putData(const unsigned char* data)
DMREMB[1U] = (data[18U] << 4) & 0xF0U;
DMREMB[1U] |= (data[19U] >> 4) & 0x0FU;

CQR1676::decode(DMREMB);
char code = CQR1676::decode(DMREMB);

m_colorCode = (DMREMB[0U] >> 4) & 0x0FU;
m_PI = (DMREMB[0U] & 0x08U) == 0x08U;
m_LCSS = (DMREMB[0U] >> 1) & 0x03U;
m_colorCode = (code >> 4) & 0x0FU;
m_PI = (code & 0x08U) == 0x08U;
m_LCSS = (code >> 1) & 0x03U;
}

void CDMREMB::getData(unsigned char* data) const
Expand Down

0 comments on commit 31408d4

Please sign in to comment.