aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish.chaudhari@ettus.com>2015-02-12 13:16:49 -0800
committerAshish Chaudhari <ashish.chaudhari@ettus.com>2015-02-12 13:16:49 -0800
commitf9681d0be4a45a343dadccbd2d97ded09203567f (patch)
tree7688b615ae6c3d2e07ffed1065110c2aa8c487c4 /host/lib/usrp
parentec7eedcca8418970e081b4875c2d5c147611025b (diff)
parent1d1976c48e8ca698d9c35636823c8ea39dc69129 (diff)
downloaduhd-f9681d0be4a45a343dadccbd2d97ded09203567f.tar.gz
uhd-f9681d0be4a45a343dadccbd2d97ded09203567f.tar.bz2
uhd-f9681d0be4a45a343dadccbd2d97ded09203567f.zip
Merge pull request #696 from EttusResearch/crymble/bug692
b200: Bugfix#692: b200_find now returns an empty device vector when hint...
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/b200/b200_impl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp
index 355d12d12..13169a5ed 100644
--- a/host/lib/usrp/b200/b200_impl.cpp
+++ b/host/lib/usrp/b200/b200_impl.cpp
@@ -86,7 +86,9 @@ static device_addrs_t b200_find(const device_addr_t &hint)
//Return an empty list of addresses when an address or resource is specified,
//since an address and resource is intended for a different, non-USB, device.
- if (hint.has_key("addr") || hint.has_key("resource")) return b200_addrs;
+ BOOST_FOREACH(device_addr_t hint_i, separate_device_addr(hint)) {
+ if (hint_i.has_key("addr") || hint_i.has_key("resource")) return b200_addrs;
+ }
boost::uint16_t vid, pid;