mirror of https://github.com/g4klx/MMDVM.git
Change DAC overflow threshold.
This commit is contained in:
parent
3d49de190d
commit
3521aa6994
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);
|
uint16_t res3 = uint16_t(res2 + DC_OFFSET);
|
||||||
|
|
||||||
// Detect DAC overflow
|
// Detect DAC overflow
|
||||||
if (res3 == 0U || res3 >= 4095U)
|
if (res3 > 4095U)
|
||||||
m_dacOverflow++;
|
m_dacOverflow++;
|
||||||
|
|
||||||
if (control == NULL)
|
if (control == NULL)
|
||||||
|
|
Loading…
Reference in New Issue