From 681b679c38427e991334374f95ea2162eef8ad02 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Wed, 23 Jun 2021 13:14:27 +0100 Subject: [PATCH] Remove magsq check which was far too high for testcase reported in #750 --- plugins/channelrx/demodpacket/packetdemodsink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/channelrx/demodpacket/packetdemodsink.cpp b/plugins/channelrx/demodpacket/packetdemodsink.cpp index a6d0f86bf..3b644ecf7 100644 --- a/plugins/channelrx/demodpacket/packetdemodsink.cpp +++ b/plugins/channelrx/demodpacket/packetdemodsink.cpp @@ -109,7 +109,7 @@ void PacketDemodSink::processOneSample(Complex &ci) m_magsqCount++; m_corrBuf[m_corrIdx] = fmDemod; - if (m_corrCnt >= m_correlationLength && magsq > 1e-7) + if (m_corrCnt >= m_correlationLength) { // Correlate with 1200 + 2200 baud complex exponentials Complex corrF0 = 0.0f;