diff options
author | Tom Rondeau | 2010-04-15 00:32:14 -0400 |
---|---|---|
committer | Tom Rondeau | 2010-04-15 00:32:14 -0400 |
commit | 2a2e808f56df2a0bf1704aa20b03d0ed4f5bdd5e (patch) | |
tree | dfc867c678c0f768c63c151cc9f8d6d00e211380 /gnuradio-core | |
parent | 7f217fbf1579bd4a37b633d29c15b929bfe8b9d5 (diff) | |
download | gnuradio-2a2e808f56df2a0bf1704aa20b03d0ed4f5bdd5e.tar.gz gnuradio-2a2e808f56df2a0bf1704aa20b03d0ed4f5bdd5e.tar.bz2 gnuradio-2a2e808f56df2a0bf1704aa20b03d0ed4f5bdd5e.zip |
Nevermind that last checkin. THIS is the right answer that doesn't have us possibly looking back at input item -1.
Diffstat (limited to 'gnuradio-core')
-rw-r--r-- | gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc index 68f3db620..5fda47880 100644 --- a/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc +++ b/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc @@ -132,7 +132,7 @@ gr_pfb_channelizer_ccf::set_taps (const std::vector<float> &taps) } // Set the history to ensure enough input items for each filter - set_history (d_taps_per_filter); + set_history (d_taps_per_filter+1); d_updated = true; } @@ -165,9 +165,9 @@ gr_pfb_channelizer_ccf::general_work (int noutput_items, return 0; // history requirements may have changed. } - int n=0, i=-1, j=0, last; + int n=1, i=-1, j=0, last; int toconsume = (int)rintf(noutput_items/d_oversample_rate); - while(n < toconsume) { + while(n <= toconsume) { j = 0; i = (i + d_rate_ratio) % d_numchans; last = i; |