mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 14:37:02 +00:00
Detect DAC overflows.
This commit is contained in:
parent
961d1000f5
commit
0d07dd78eb
3 changed files with 29 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue