summaryrefslogtreecommitdiff
path: root/gr-uhd
diff options
context:
space:
mode:
authorTom Rondeau2011-10-19 11:08:15 -0700
committerTom Rondeau2011-10-19 11:08:15 -0700
commit0d2db7f6d168cc38634e0a2da2a08bcadc19a420 (patch)
treed09030b700bfea0d4817bbd11486dca7dd154e2d /gr-uhd
parent5f35546ced679cc41e21a5858e18908b64e38956 (diff)
downloadgnuradio-0d2db7f6d168cc38634e0a2da2a08bcadc19a420.tar.gz
gnuradio-0d2db7f6d168cc38634e0a2da2a08bcadc19a420.tar.bz2
gnuradio-0d2db7f6d168cc38634e0a2da2a08bcadc19a420.zip
uhd: fixed examples to use new find_devices command.
Diffstat (limited to 'gr-uhd')
-rwxr-xr-xgr-uhd/examples/fm_tx_2_daughterboards.py2
-rwxr-xr-xgr-uhd/examples/max_power.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/gr-uhd/examples/fm_tx_2_daughterboards.py b/gr-uhd/examples/fm_tx_2_daughterboards.py
index 80fc667a5..25325bd19 100755
--- a/gr-uhd/examples/fm_tx_2_daughterboards.py
+++ b/gr-uhd/examples/fm_tx_2_daughterboards.py
@@ -108,7 +108,7 @@ class my_top_block(gr.top_block):
# ----------------------------------------------------------------
# Set up USRP to transmit on both daughterboards
- d = uhd.device_find(uhd.device_addr(options.args))
+ d = uhd.find_devices(uhd.device_addr(options.args))
uhd_type = d[0].get('type')
self.u = uhd.usrp_sink(device_addr=options.args,
diff --git a/gr-uhd/examples/max_power.py b/gr-uhd/examples/max_power.py
index ec9cb34ee..53e1b413c 100755
--- a/gr-uhd/examples/max_power.py
+++ b/gr-uhd/examples/max_power.py
@@ -42,7 +42,7 @@ class build_block(gr.top_block):
def __init__(self, args, tx_enable, rx_enable):
gr.top_block.__init__(self)
- d = uhd.device_find(uhd.device_addr(args))
+ d = uhd.find_devices(uhd.device_addr(args))
uhd_type = d[0].get('type')
print "\nFound '%s' at args '%s'" % \