1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-17 05:41:56 -05:00

NFM demod: improve squelch tail elimination while keeping threshold close to the signal average

This commit is contained in:
f4exb 2016-12-06 01:59:00 +01:00
parent 9eff950730
commit 94406bb122

View File

@ -172,7 +172,7 @@ void NFMDemod::feed(const SampleVector::const_iterator& begin, const SampleVecto
// AF processing
if (m_magsq > m_squelchLevel)
if ((m_magsq > m_squelchLevel) && (m_magsqPeak > m_magsq/2.0f))
{
if (m_squelchCount < m_squelchGate)
{