diff --git a/gr-jay/lib/preamble_sync_impl.cc b/gr-jay/lib/preamble_sync_impl.cc index a2e7163..4888061 100644 --- a/gr-jay/lib/preamble_sync_impl.cc +++ b/gr-jay/lib/preamble_sync_impl.cc @@ -25,6 +25,8 @@ #include #include "preamble_sync_impl.h" +#define WITH_DEBUG_MESSAGES 0 + namespace gr { namespace jay @@ -83,7 +85,9 @@ int preamble_sync_impl::general_work (int noutput_items, gr_vector_int &ninput_i m_state = PreambleSlow; m_wordCount = 0; m_dataCount = 0; +#if WITH_DEBUG_MESSAGES fprintf(stderr, "Reset\n"); +#endif } continue; } @@ -194,7 +198,9 @@ int preamble_sync_impl::general_work (int noutput_items, gr_vector_int &ninput_i } if (m_state != m_stateNext) { +#if WITH_DEBUG_MESSAGES fprintf(stderr, "State changed: %s => %s\n", stateNames[m_state], stateNames[m_stateNext]); +#endif } m_wordCount = m_wordSize - 1; m_state = m_stateNext;