- reduced debug messages
git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@410 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -25,6 +25,8 @@
|
|||||||
#include <gnuradio/io_signature.h>
|
#include <gnuradio/io_signature.h>
|
||||||
#include "preamble_sync_impl.h"
|
#include "preamble_sync_impl.h"
|
||||||
|
|
||||||
|
#define WITH_DEBUG_MESSAGES 0
|
||||||
|
|
||||||
namespace gr
|
namespace gr
|
||||||
{
|
{
|
||||||
namespace jay
|
namespace jay
|
||||||
@@ -83,7 +85,9 @@ int preamble_sync_impl::general_work (int noutput_items, gr_vector_int &ninput_i
|
|||||||
m_state = PreambleSlow;
|
m_state = PreambleSlow;
|
||||||
m_wordCount = 0;
|
m_wordCount = 0;
|
||||||
m_dataCount = 0;
|
m_dataCount = 0;
|
||||||
|
#if WITH_DEBUG_MESSAGES
|
||||||
fprintf(stderr, "Reset\n");
|
fprintf(stderr, "Reset\n");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
continue;
|
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 (m_state != m_stateNext)
|
||||||
{
|
{
|
||||||
|
#if WITH_DEBUG_MESSAGES
|
||||||
fprintf(stderr, "State changed: %s => %s\n", stateNames[m_state], stateNames[m_stateNext]);
|
fprintf(stderr, "State changed: %s => %s\n", stateNames[m_state], stateNames[m_stateNext]);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
m_wordCount = m_wordSize - 1;
|
m_wordCount = m_wordSize - 1;
|
||||||
m_state = m_stateNext;
|
m_state = m_stateNext;
|
||||||
|
|||||||
Reference in New Issue
Block a user