summaryrefslogtreecommitdiff
path: root/gr-uhd/apps/uhd_fft
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/apps/uhd_fft')
-rwxr-xr-xgr-uhd/apps/uhd_fft4
1 files changed, 4 insertions, 0 deletions
diff --git a/gr-uhd/apps/uhd_fft b/gr-uhd/apps/uhd_fft
index 7af2c5326..800a5fab8 100755
--- a/gr-uhd/apps/uhd_fft
+++ b/gr-uhd/apps/uhd_fft
@@ -118,6 +118,10 @@ class app_top_block(stdgui2.std_top_block):
average=options.averaging,
avg_alpha=options.avg_alpha,
fft_rate=options.fft_rate)
+ def fftsink_callback(x, y):
+ self.set_freq(x)
+
+ self.scope.set_callback(fftsink_callback)
self.frame.SetMinSize((800, 420))
self.connect(self.u, self.scope)