diff options
-rw-r--r-- | gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py b/gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py index 5f074b197..e96159f1d 100644 --- a/gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py +++ b/gnuradio-core/src/python/gnuradio/blks2impl/logpwrfft.py @@ -59,7 +59,9 @@ class _logpwrfft_base(gr.hier_block2): -10*math.log10(window_power/fft_size) # Adjust for windowing loss -20*math.log10(ref_scale/2)) # Adjust for reference scale self.connect(self, self._sd, fft, c2mag, self._avg, self._log, self) - self.set_average(False) + + self._average = average + self._avg_alpha = avg_alpha self.set_avg_alpha(avg_alpha) self.set_average(average) |