From 3521aa6994f6472285e1ebee3b83933a3ae9aaa9 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 13 Jun 2016 19:31:16 +0100 Subject: [PATCH] Change DAC overflow threshold. --- IO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IO.cpp b/IO.cpp index a834c0c..9803040 100644 --- a/IO.cpp +++ b/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)