Fix a couple of minor bugs.

This commit is contained in:
Jonathan Naylor
2020-07-28 14:24:51 +01:00
parent d8f138066e
commit b5ba384495
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ uint8_t CFMNoiseSquelch::process(q15_t sample)
threshold = m_lowThreshold;
m_result |= NS_READY;
if (value >= threshold)
if (value < threshold)
m_result |= NS_VALID;
else
m_result &= ~NS_VALID;