summaryrefslogtreecommitdiff
path: root/gr-utils/src/python/usrp_fft.py
diff options
context:
space:
mode:
authorjcorgan2007-11-08 02:20:57 +0000
committerjcorgan2007-11-08 02:20:57 +0000
commit32ea2fe9034c799557cfb63be6f56301a94621f1 (patch)
tree1c3f42455c0bb38d6fb736f991dfe53d21503d34 /gr-utils/src/python/usrp_fft.py
parent9e4536a76f32aeab24b072689b2950cfa19c9f34 (diff)
downloadgnuradio-32ea2fe9034c799557cfb63be6f56301a94621f1.tar.gz
gnuradio-32ea2fe9034c799557cfb63be6f56301a94621f1.tar.bz2
gnuradio-32ea2fe9034c799557cfb63be6f56301a94621f1.zip
Fixes center frequency display in usrp_fft.py
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6829 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-utils/src/python/usrp_fft.py')
-rwxr-xr-xgr-utils/src/python/usrp_fft.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gr-utils/src/python/usrp_fft.py b/gr-utils/src/python/usrp_fft.py
index bdec44ce5..6ffeb1f03 100755
--- a/gr-utils/src/python/usrp_fft.py
+++ b/gr-utils/src/python/usrp_fft.py
@@ -75,7 +75,7 @@ class app_top_block(stdgui2.std_top_block):
if len(args) != 0:
parser.print_help()
sys.exit(1)
-
+ self.options = options
self.show_debug_info = True
# build the graph
@@ -233,7 +233,9 @@ class app_top_block(stdgui2.std_top_block):
if self.show_debug_info:
self.myform['baseband'].set_value(r.baseband_freq)
self.myform['ddc'].set_value(r.dxc_freq)
- return True
+ if not self.options.waterfall and not self.options.oscilloscope:
+ self.scope.set_baseband_freq(target_freq)
+ return True
return False