diff options
author | Ashish Chaudhari <ashish.chaudhari@ettus.com> | 2015-02-12 13:16:49 -0800 |
---|---|---|
committer | Ashish Chaudhari <ashish.chaudhari@ettus.com> | 2015-02-12 13:16:49 -0800 |
commit | f9681d0be4a45a343dadccbd2d97ded09203567f (patch) | |
tree | 7688b615ae6c3d2e07ffed1065110c2aa8c487c4 /host/lib/usrp | |
parent | ec7eedcca8418970e081b4875c2d5c147611025b (diff) | |
parent | 1d1976c48e8ca698d9c35636823c8ea39dc69129 (diff) | |
download | uhd-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.cpp | 4 |
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; |