diff options
author | Tom Rondeau | 2012-12-03 22:53:16 -0500 |
---|---|---|
committer | Tom Rondeau | 2012-12-03 22:55:10 -0500 |
commit | ef74b48c155bfcec2f560c9a4a23592814699eda (patch) | |
tree | 66e4c56edc08158052807037809f094db000f916 /gnuradio-core/src/lib/general | |
parent | 197aa3c917c8750729e20ead831bb3a3dbce322e (diff) | |
download | gnuradio-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.cc | 4 |
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; |