Change decode to be a bit.
This commit is contained in:
parent
9cc797a683
commit
6228f1ff2d
|
@ -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)
|
||||
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue