summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/usrp_wfm_rcv2_nogui.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/examples/usrp_wfm_rcv2_nogui.py')
-rwxr-xr-xgr-uhd/examples/usrp_wfm_rcv2_nogui.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gr-uhd/examples/usrp_wfm_rcv2_nogui.py b/gr-uhd/examples/usrp_wfm_rcv2_nogui.py
index 013a6864f..13f89c71c 100755
--- a/gr-uhd/examples/usrp_wfm_rcv2_nogui.py
+++ b/gr-uhd/examples/usrp_wfm_rcv2_nogui.py
@@ -33,9 +33,8 @@ class wfm_rx_block (gr.top_block):
gr.top_block.__init__(self)
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("", "--f1", type="eng_float", default=100.7e6,
@@ -69,7 +68,7 @@ class wfm_rx_block (gr.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=2)