diff --git a/plugins/channelrx/demodpager/pagerdemodsink.cpp b/plugins/channelrx/demodpager/pagerdemodsink.cpp index 82135d07a..5cb0e2dcb 100644 --- a/plugins/channelrx/demodpager/pagerdemodsink.cpp +++ b/plugins/channelrx/demodpager/pagerdemodsink.cpp @@ -458,7 +458,7 @@ void PagerDemodSink::processOneSample(Complex &ci) m_gotSOP = true; m_inverted = true; } - else if (popcount(m_bits ^ PAGERDEMOD_POCSAG_SYNCCODE) <= 2) + else if (popcount((m_bits ^ PAGERDEMOD_POCSAG_SYNCCODE) & 0xfffffffeU) <= 2) { quint32 correctedCW; if (bchDecode(m_bits, correctedCW) @@ -468,7 +468,7 @@ void PagerDemodSink::processOneSample(Complex &ci) m_inverted = false; } } - else if (popcount(m_bits ^ PAGERDEMOD_POCSAG_SYNCCODE_INV) <= 2) + else if (popcount((m_bits ^ PAGERDEMOD_POCSAG_SYNCCODE_INV) & 0xfffffffeU) <= 2) { quint32 correctedCW; if (bchDecode(~m_bits, correctedCW) @@ -659,7 +659,6 @@ void PagerDemodSink::applySettings(const QStringList& settingsKeys, const PagerD m_interpolator.create(16, m_channelSampleRate, settings.m_rfBandwidth / 2.2); m_interpolatorDistance = (Real) m_channelSampleRate / (Real) PagerDemodSettings::m_channelSampleRate; m_interpolatorDistanceRemain = m_interpolatorDistance; - m_lowpass.create(301, PagerDemodSettings::m_channelSampleRate, settings.m_rfBandwidth / 2.0f); } if ((settingsKeys.contains("fmDeviation") && (settings.m_fmDeviation != m_settings.m_fmDeviation)) || force) diff --git a/plugins/channelrx/demodpager/pagerdemodsink.h b/plugins/channelrx/demodpager/pagerdemodsink.h index 569c1270d..95bcf32a9 100644 --- a/plugins/channelrx/demodpager/pagerdemodsink.h +++ b/plugins/channelrx/demodpager/pagerdemodsink.h @@ -111,7 +111,6 @@ private: MovingAverageUtil m_movingAverage; - Lowpass m_lowpass; // RF input filter PhaseDiscriminators m_phaseDiscri; // FM demodulator Lowpass m_lowpassBaud; // Low pass filter for FM demod output Real m_dcOffset; // Calculated DC offset of preamble