1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 23:43:43 -04:00

Ignore partiy bit. Remove unused filter.

This commit is contained in:
Jon Beniston
2026-07-31 18:58:21 +01:00
parent e0f85c1fc3
commit e460f82451
2 changed files with 2 additions and 4 deletions
@@ -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)
@@ -111,7 +111,6 @@ private:
MovingAverageUtil<Real, double, 16> m_movingAverage;
Lowpass<Complex> m_lowpass; // RF input filter
PhaseDiscriminators m_phaseDiscri; // FM demodulator
Lowpass<Real> m_lowpassBaud; // Low pass filter for FM demod output
Real m_dcOffset; // Calculated DC offset of preamble