1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-15 16:03:42 -04:00

Ignore parity bit

This commit is contained in:
Jon Beniston
2026-07-31 17:42:22 +01:00
parent 0c1ed5ab0d
commit c56e3f1b53
@@ -304,7 +304,9 @@ void PagerDemodSink::decodeBatch()
// Check parity bit
bool parityError = !evenParity(m_codeWords[i], 1, 31, m_codeWords[i] & 0x1);
if (m_codeWords[i] == PAGERDEMOD_POCSAG_IDLECODE)
// The overall parity bit is preserved by bchDecode() so it can be
// reported separately. Ignore it when identifying the idle word.
if ((m_codeWords[i] & 0xfffffffeU) == (PAGERDEMOD_POCSAG_IDLECODE & 0xfffffffeU))
{
// Idle
}
@@ -496,7 +498,8 @@ void PagerDemodSink::processOneSample(Complex &ci)
m_wordCount++;
// Check for sync code at start of batch
if ((m_wordCount == 1) && (correctedCW != PAGERDEMOD_POCSAG_SYNCCODE))
if ((m_wordCount == 1)
&& ((correctedCW & 0xfffffffeU) != (PAGERDEMOD_POCSAG_SYNCCODE & 0xfffffffeU)))
{
m_gotSOP = false;
//m_thresholdMet = false;