mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-14 15:54:11 +02:00
Merge pull request #39 from juribeparada/master
Fix ADC overflow message
This commit is contained in:
+2
-1
@@ -132,7 +132,6 @@ 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;
|
||||||
@@ -153,6 +152,8 @@ void CSerialPort::getStatus()
|
|||||||
if (dacOverflow)
|
if (dacOverflow)
|
||||||
reply[5U] |= 0x20U;
|
reply[5U] |= 0x20U;
|
||||||
|
|
||||||
|
reply[5U] |= m_dcd ? 0x40U : 0x00U;
|
||||||
|
|
||||||
if (m_dstarEnable)
|
if (m_dstarEnable)
|
||||||
reply[6U] = dstarTX.getSpace();
|
reply[6U] = dstarTX.getSpace();
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user