mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 14:37:02 +00:00
Change DAC overflow threshold.
This commit is contained in:
parent
3d49de190d
commit
3521aa6994
1 changed files with 1 additions and 1 deletions
2
IO.cpp
2
IO.cpp
|
|
@ -407,7 +407,7 @@ void CIO::write(q15_t* samples, uint16_t length, const uint8_t* control)
|
|||
uint16_t res3 = uint16_t(res2 + DC_OFFSET);
|
||||
|
||||
// Detect DAC overflow
|
||||
if (res3 == 0U || res3 >= 4095U)
|
||||
if (res3 > 4095U)
|
||||
m_dacOverflow++;
|
||||
|
||||
if (control == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue