1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 01:18:38 -05:00

NFMDemodSink: Fix ctcssOn logic

This commit is contained in:
Kacper Michajłow 2020-11-03 16:36:05 +01:00 committed by f4exb
parent 38755e35f1
commit 7ad8c046f2

View File

@ -173,7 +173,7 @@ void NFMDemodSink::processOneSample(Complex &ci)
} }
} }
if (!m_settings.m_audioMute && (m_settings.m_ctcssOn && m_ctcssIndexSelected == ctcssIndex || m_ctcssIndexSelected == 0)) if (!m_settings.m_audioMute && (!m_settings.m_ctcssOn || m_ctcssIndexSelected == ctcssIndex || m_ctcssIndexSelected == 0))
{ {
Real audioSample = m_squelchDelayLine.readBack(m_squelchGate); Real audioSample = m_squelchDelayLine.readBack(m_squelchGate);
audioSample = m_settings.m_highPass ? m_bandpass.filter(audioSample) : m_lowpass.filter(audioSample); audioSample = m_settings.m_highPass ? m_bandpass.filter(audioSample) : m_lowpass.filter(audioSample);