summaryrefslogtreecommitdiff
path: root/gr-blocks/include
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2015-04-08 12:20:08 -0400
committerTom Rondeau <tom@trondeau.com>2015-04-08 12:20:08 -0400
commit86759e94bb1cc7d3ff071e398e972ec1a6ceed70 (patch)
tree0608ac4b0ea1eed2afa1bc09c409abafd20d7324 /gr-blocks/include
parentd4b38e890c5ba3422160ba1ca5db3f55762eeb34 (diff)
blocks: fixed problem with setting peak detector's alpha value.
This changes the public interface from an int to a float. But the alpha must be between 0 and 1 for it to make any sense, so if this is being used, it's never producing the right answer. Also, it's likely that this change will be transparent to anyone who is trying to set it.
Diffstat (limited to 'gr-blocks/include')
-rw-r--r--gr-blocks/include/gnuradio/blocks/peak_detector2_fb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/peak_detector2_fb.h b/gr-blocks/include/gnuradio/blocks/peak_detector2_fb.h
index 7336a46f8e..da2d9fc740 100644
--- a/gr-blocks/include/gnuradio/blocks/peak_detector2_fb.h
+++ b/gr-blocks/include/gnuradio/blocks/peak_detector2_fb.h
@@ -71,7 +71,7 @@ namespace gr {
/*! \brief Set the running average alpha
* \param alpha new alpha for running average
*/
- virtual void set_alpha(int alpha) = 0;
+ virtual void set_alpha(float alpha) = 0;
/*! \brief Get the threshold factor value for the rise time
* \return threshold factor