mirror of https://github.com/g4klx/MMDVM.git
Convert decode to be a bit.
This commit is contained in:
parent
ec871cd3db
commit
e3c80e1aed
|
@ -116,7 +116,7 @@ void CSerialPort::getStatus()
|
||||||
|
|
||||||
// Send all sorts of interesting internal values
|
// Send all sorts of interesting internal values
|
||||||
reply[0U] = MMDVM_FRAME_START;
|
reply[0U] = MMDVM_FRAME_START;
|
||||||
reply[1U] = 12U;
|
reply[1U] = 11U;
|
||||||
reply[2U] = MMDVM_GET_STATUS;
|
reply[2U] = MMDVM_GET_STATUS;
|
||||||
|
|
||||||
reply[3U] = 0x00U;
|
reply[3U] = 0x00U;
|
||||||
|
@ -132,6 +132,7 @@ void CSerialPort::getStatus()
|
||||||
reply[4U] = uint8_t(m_modemState);
|
reply[4U] = uint8_t(m_modemState);
|
||||||
|
|
||||||
reply[5U] = m_tx ? 0x01U : 0x00U;
|
reply[5U] = m_tx ? 0x01U : 0x00U;
|
||||||
|
reply[5U] |= m_dcd ? 0x02U : 0x00U;
|
||||||
|
|
||||||
bool adcOverflow;
|
bool adcOverflow;
|
||||||
bool dacOverflow;
|
bool dacOverflow;
|
||||||
|
@ -180,12 +181,7 @@ void CSerialPort::getStatus()
|
||||||
else
|
else
|
||||||
reply[10U] = 0U;
|
reply[10U] = 0U;
|
||||||
|
|
||||||
if (m_dcd)
|
writeInt(1U, reply, 11);
|
||||||
reply[11U] = 1U;
|
|
||||||
else
|
|
||||||
reply[11U] = 0U;
|
|
||||||
|
|
||||||
writeInt(1U, reply, 12);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSerialPort::getVersion()
|
void CSerialPort::getVersion()
|
||||||
|
|
Loading…
Reference in New Issue