summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc5
-rwxr-xr-xgr-digital/python/qa_constellation_receiver.py2
2 files changed, 5 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc
index 633c5be07..398956ddd 100644
--- a/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc
+++ b/gnuradio-core/src/lib/filter/gr_pfb_clock_sync_ccf.cc
@@ -244,6 +244,9 @@ gr_pfb_clock_sync_ccf::set_taps (const std::vector<float> &newtaps,
// Set the history to ensure enough input items for each filter
set_history (d_taps_per_filter + d_sps);
+ // Make sure there is enough output space for d_osps outputs/input.
+ set_output_multiple(d_osps);
+
d_updated = true;
}
@@ -376,7 +379,7 @@ gr_pfb_clock_sync_ccf::general_work (int noutput_items,
float error_r, error_i;
// produce output as long as we can and there are enough input samples
- while((i < noutput_items-d_osps) && (count < nrequired)) {
+ while((i < noutput_items) && (count < nrequired)) {
for(int k = 0; k < d_osps; k++) {
d_filtnum = (int)floor(d_k);
diff --git a/gr-digital/python/qa_constellation_receiver.py b/gr-digital/python/qa_constellation_receiver.py
index 25107e4a7..6c0024678 100755
--- a/gr-digital/python/qa_constellation_receiver.py
+++ b/gr-digital/python/qa_constellation_receiver.py
@@ -38,7 +38,7 @@ random.seed(1239)
# TESTING PARAMETERS
# The number of symbols to test with.
# We need this many to let the frequency recovery block converge.
-DATA_LENGTH = 10000
+DATA_LENGTH = 2000
# Test fails if fraction of output that is correct is less than this.
REQ_CORRECT = 0.8