summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcorgan2008-04-24 23:24:04 +0000
committerjcorgan2008-04-24 23:24:04 +0000
commit5eefec8efb22a15bb6f127f83214fdf11a626e06 (patch)
tree91fb774a135703cfdf1c128df7de30b3b5dacfae
parent1959159927243a585342d1be5e7b70d56ab2984b (diff)
downloadgnuradio-5eefec8efb22a15bb6f127f83214fdf11a626e06.tar.gz
gnuradio-5eefec8efb22a15bb6f127f83214fdf11a626e06.tar.bz2
gnuradio-5eefec8efb22a15bb6f127f83214fdf11a626e06.zip
Make fftsink2 average and peak hold modes independent.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8275 221aa14e-8319-0410-a670-987f0aec2ac5
-rwxr-xr-xgr-wxgui/src/python/fftsink2.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/gr-wxgui/src/python/fftsink2.py b/gr-wxgui/src/python/fftsink2.py
index 9945293ec..c3df18d25 100755
--- a/gr-wxgui/src/python/fftsink2.py
+++ b/gr-wxgui/src/python/fftsink2.py
@@ -66,14 +66,12 @@ class fft_sink_base(object):
self.average = average
if average:
self.avg.set_taps(self.avg_alpha)
- self.set_peak_hold(False)
else:
self.avg.set_taps(1.0)
-
+ self.win.peak_vals = None
+
def set_peak_hold(self, enable):
self.peak_hold = enable
- if enable:
- self.set_average(False)
self.win.set_peak_hold(enable)
def set_avg_alpha(self, avg_alpha):