Skip to content

Commit

Permalink
Change decode to be a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx authored Nov 17, 2016
1 parent 9cc797a commit 6228f1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Modem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ void CModem::clock(unsigned int ms)
// CUtils::dump(1U, "GET_STATUS", m_buffer, m_length);

m_tx = (m_buffer[5U] & 0x01U) == 0x01U;
m_cd = (m_buffer[5U] & 0x02U) == 0x02U;

bool adcOverflow = (m_buffer[5U] & 0x02U) == 0x02U;
if (adcOverflow)
Expand All @@ -447,8 +448,6 @@ void CModem::clock(unsigned int ms)
m_ysfSpace = m_buffer[9U];
m_p25Space = m_buffer[10U];

m_cd = (m_buffer[11U] & 0x01U) == 0x01U;

m_inactivityTimer.start();
// LogMessage("status=%02X, tx=%d, space=%u,%u,%u,%u,%u lockout=%d, cd=%d", m_buffer[5U], int(m_tx), m_dstarSpace, m_dmrSpace1, m_dmrSpace2, m_ysfSpace, m_p25Space, int(m_lockout), int(m_cd));
}
Expand Down

0 comments on commit 6228f1f

Please sign in to comment.