From 5eefec8efb22a15bb6f127f83214fdf11a626e06 Mon Sep 17 00:00:00 2001 From: jcorgan Date: Thu, 24 Apr 2008 23:24:04 +0000 Subject: Make fftsink2 average and peak hold modes independent. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8275 221aa14e-8319-0410-a670-987f0aec2ac5 --- gr-wxgui/src/python/fftsink2.py | 6 ++---- 1 file 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): -- cgit