diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2015-07-31 16:39:28 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-07-31 16:45:47 -0700 |
commit | e956fc124029394f8d4a9157e1feeb0b76f0e8ee (patch) | |
tree | e8cbda6432ac1301e2f5d8196f5f6050a3ca144c /host/lib | |
parent | 0c7d748bbf6c282d3f1c759201e40f35f26133ca (diff) | |
download | uhd-e956fc124029394f8d4a9157e1feeb0b76f0e8ee.tar.gz uhd-e956fc124029394f8d4a9157e1feeb0b76f0e8ee.tar.bz2 uhd-e956fc124029394f8d4a9157e1feeb0b76f0e8ee.zip |
b200: fixed initial loading
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index b45529c1a..3445f125b 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -125,8 +125,7 @@ static device_addrs_t b200_find(const device_addr_t &hint) // so that re-enumeration after fw load can occur successfully. // This requirement is a courtesy of libusb1.0 on windows. size_t found = 0; - std::vector<usb_device_handle::sptr> b200_device_handles = get_b200_device_handles(hint); - BOOST_FOREACH(usb_device_handle::sptr handle, b200_device_handles) { + BOOST_FOREACH(usb_device_handle::sptr handle, get_b200_device_handles(hint)) { //extract the firmware path for the b200 std::string b200_fw_image; try{ @@ -157,7 +156,7 @@ static device_addrs_t b200_find(const device_addr_t &hint) //search for the device until found or timeout while (boost::get_system_time() < timeout_time and b200_addrs.empty() and found != 0) { - BOOST_FOREACH(usb_device_handle::sptr handle, b200_device_handles) + BOOST_FOREACH(usb_device_handle::sptr handle, get_b200_device_handles(hint)) { usb_control::sptr control; try{control = usb_control::make(handle, 0);} |