summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/usrp_wfm_rcv.py
diff options
context:
space:
mode:
authorJosh Blum2011-10-19 16:37:33 -0700
committerJosh Blum2011-10-19 16:37:33 -0700
commitbe300d920fe1b7a3eb738565cddd10624ec62a75 (patch)
tree45bb49c4a4acd7c93bb218c84b94de4c90f198c5 /gr-uhd/examples/usrp_wfm_rcv.py
parenta57f7484a1b1ba18b66334675ce6458b00d40626 (diff)
parente30b824e9165bff69f09121631c3d5a706cbbd39 (diff)
downloadgnuradio-be300d920fe1b7a3eb738565cddd10624ec62a75.tar.gz
gnuradio-be300d920fe1b7a3eb738565cddd10624ec62a75.tar.bz2
gnuradio-be300d920fe1b7a3eb738565cddd10624ec62a75.zip
Merge branch 'next' of http://gnuradio.org/git/gnuradio into next
Diffstat (limited to 'gr-uhd/examples/usrp_wfm_rcv.py')
-rwxr-xr-xgr-uhd/examples/usrp_wfm_rcv.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gr-uhd/examples/usrp_wfm_rcv.py b/gr-uhd/examples/usrp_wfm_rcv.py
index 7b35fbbe4..138e5045b 100755
--- a/gr-uhd/examples/usrp_wfm_rcv.py
+++ b/gr-uhd/examples/usrp_wfm_rcv.py
@@ -34,9 +34,8 @@ class wfm_rx_block (stdgui2.std_top_block):
stdgui2.std_top_block.__init__ (self,frame,panel,vbox,argv)
parser=OptionParser(option_class=eng_option)
- parser.add_option("-a", "--address", type="string",
- default="addr=192.168.10.2",
- help="Address of UHD device, [default=%default]")
+ parser.add_option("-a", "--args", type="string", default="",
+ help="UHD device address args [default=%default]")
parser.add_option("-A", "--antenna", type="string", default=None,
help="select Rx Antenna where appropriate")
parser.add_option("-f", "--freq", type="eng_float", default=100.1e6,
@@ -68,7 +67,7 @@ class wfm_rx_block (stdgui2.std_top_block):
self.fm_freq_max = options.freq_max
# build graph
- self.u = uhd.usrp_source(device_addr=options.address,
+ self.u = uhd.usrp_source(device_addr=options.args,
io_type=uhd.io_type.COMPLEX_FLOAT32,
num_channels=1)