diff options
author | rear1019 <rear1019@posteo.de> | 2020-04-13 10:22:48 +0200 |
---|---|---|
committer | Martin Braun <martin@gnuradio.org> | 2021-01-11 08:57:22 -0800 |
commit | 7645f83ee1a57999e9cedc436ab5e5e397ce20db (patch) | |
tree | 81e15c49acbcf49cadf31424189cf26ec4f16d49 | |
parent | 0da077c4a70451020baee23a54b19775ac5d7ed7 (diff) |
peak_detector2: Return correct number of consumed items
This fixes #3345.
-rw-r--r-- | gr-blocks/lib/peak_detector2_fb_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/lib/peak_detector2_fb_impl.cc b/gr-blocks/lib/peak_detector2_fb_impl.cc index d0de85ca07..3d2b68b520 100644 --- a/gr-blocks/lib/peak_detector2_fb_impl.cc +++ b/gr-blocks/lib/peak_detector2_fb_impl.cc @@ -90,7 +90,7 @@ int peak_detector2_fb_impl::work(int noutput_items, d_found = true; d_peak_val = std::numeric_limits<float>::min(); set_output_multiple(d_look_ahead); - return i; + return i + 1; } } return noutput_items; |