Change DAC overflow threshold.

This commit is contained in:
Jonathan Naylor 2016-06-13 19:31:16 +01:00
parent 3d49de190d
commit 3521aa6994
1 changed files with 1 additions and 1 deletions

2
IO.cpp
View File

@ -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)