mirror of https://github.com/g4klx/MMDVM.git
Loosen the matching for the frame start sync pattern.
This commit is contained in:
parent
70e3779d64
commit
90d00846ab
|
@ -325,8 +325,8 @@ void CDStarRX::processNone(bool bit)
|
||||||
if (bit)
|
if (bit)
|
||||||
m_patternBuffer |= 0x01U;
|
m_patternBuffer |= 0x01U;
|
||||||
|
|
||||||
// Exact matching of the frame sync sequence
|
// Fuzzy matching of the frame sync sequence
|
||||||
if (countBits32((m_patternBuffer & FRAME_SYNC_MASK) ^ FRAME_SYNC_DATA) == 0U) {
|
if (countBits32((m_patternBuffer & FRAME_SYNC_MASK) ^ FRAME_SYNC_DATA) <= FRAME_SYNC_ERRS) {
|
||||||
DEBUG1("DStarRX: found frame sync in None");
|
DEBUG1("DStarRX: found frame sync in None");
|
||||||
|
|
||||||
::memset(m_rxBuffer, 0x00U, DSTAR_FEC_SECTION_LENGTH_BYTES);
|
::memset(m_rxBuffer, 0x00U, DSTAR_FEC_SECTION_LENGTH_BYTES);
|
||||||
|
|
Loading…
Reference in New Issue