summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/general
diff options
context:
space:
mode:
authorTom Rondeau2012-12-03 22:53:16 -0500
committerTom Rondeau2012-12-03 22:55:10 -0500
commitef74b48c155bfcec2f560c9a4a23592814699eda (patch)
tree66e4c56edc08158052807037809f094db000f916 /gnuradio-core/src/lib/general
parent197aa3c917c8750729e20ead831bb3a3dbce322e (diff)
downloadgnuradio-ef74b48c155bfcec2f560c9a4a23592814699eda.tar.gz
gnuradio-ef74b48c155bfcec2f560c9a4a23592814699eda.tar.bz2
gnuradio-ef74b48c155bfcec2f560c9a4a23592814699eda.zip
build: cleaned up some warnings.
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r--gnuradio-core/src/lib/general/gr_simple_correlator.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/general/gr_simple_correlator.cc b/gnuradio-core/src/lib/general/gr_simple_correlator.cc
index 9c2ebef15..b9209e74f 100644
--- a/gnuradio-core/src/lib/general/gr_simple_correlator.cc
+++ b/gnuradio-core/src/lib/general/gr_simple_correlator.cc
@@ -158,11 +158,13 @@ gr_simple_correlator::general_work (int noutput_items,
int decision;
int hamming_dist;
+#ifdef DEBUG_SIMPLE_CORRELATOR
struct debug_data {
float raw_data;
float sampled;
float enter_locked;
} debug_data;
+#endif
while (n < nin){
@@ -212,7 +214,9 @@ gr_simple_correlator::general_work (int noutput_items,
else if (d_state == ST_UNDER_THRESHOLD && hamming_dist > THRESHOLD){
// no longer seeing good PN code, compute center of goodness
enter_locked ();
+#ifdef DEBUG_SIMPLE_CORRELATOR
debug_data.enter_locked = 1.0;
+#endif
}
break;