From 154a9049f47789a47ca45fc2ebdcc286dbdd66d2 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 12 Apr 2016 19:38:59 +0100 Subject: [PATCH] Clean up the YSF RX. --- YSFRX.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/YSFRX.cpp b/YSFRX.cpp index e9c8796..66f37dc 100644 --- a/YSFRX.cpp +++ b/YSFRX.cpp @@ -216,14 +216,7 @@ void CYSFRX::processData(q15_t sample) if (m_bufferPtr >= (YSF_SYNC_LENGTH_BITS - 2U) && m_bufferPtr <= (YSF_SYNC_LENGTH_BITS + 2U)) { // Fuzzy matching of the data sync bit sequence if (countBits64((m_bitBuffer & YSF_SYNC_BITS_MASK) ^ YSF_SYNC_BITS) <= SYNC_BIT_ERRS) { -#if defined(WANT_DEBUG) - if (m_bufferPtr < YSF_SYNC_LENGTH_BITS) - DEBUG2("YSFRX: found sync in Data, early", YSF_SYNC_LENGTH_BITS - m_bufferPtr); - else if (m_bufferPtr > YSF_SYNC_LENGTH_BITS) - DEBUG2("YSFRX: found sync in Data, late", m_bufferPtr - YSF_SYNC_LENGTH_BITS); - else - DEBUG1("YSFRX: found sync in Data"); -#endif + DEBUG2("YSFRX: found sync in Data, pos", m_bufferPtr - YSF_SYNC_LENGTH_BITS); m_lostCount = MAX_SYNC_FRAMES; m_bufferPtr = YSF_SYNC_LENGTH_BITS; found = true;