mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-08-21 14:36:21 +02:00
Detect DAC overflows.
This commit is contained in:
+8
-1
@@ -123,7 +123,11 @@ void CSerialPort::getStatus()
|
||||
|
||||
reply[5U] = m_tx ? 0x01U : 0x00U;
|
||||
|
||||
if (io.hasADCOverflow())
|
||||
bool adcOverflow;
|
||||
bool dacOverflow;
|
||||
io.getOverflow(adcOverflow, dacOverflow);
|
||||
|
||||
if (adcOverflow)
|
||||
reply[5U] |= 0x02U;
|
||||
|
||||
if (io.hasRXOverflow())
|
||||
@@ -135,6 +139,9 @@ void CSerialPort::getStatus()
|
||||
if (io.hasLockout())
|
||||
reply[5U] |= 0x10U;
|
||||
|
||||
if (dacOverflow)
|
||||
reply[5U] |= 0x20U;
|
||||
|
||||
if (m_dstarEnable)
|
||||
reply[6U] = dstarTX.getSpace();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user