diff options
author | Michael Dickens <michael.dickens@ettus.com> | 2015-08-31 09:44:56 -0400 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-09-01 13:14:42 -0700 |
commit | 6b857404551a0e03de1f729c378a8e6099831ae0 (patch) | |
tree | d3efd9c114af29cc34f7a02a13f471078fdc102f /host/lib/usrp | |
parent | cd88f80f1671eae9df45cd08ec911ce4491dbacd (diff) | |
download | uhd-6b857404551a0e03de1f729c378a8e6099831ae0.tar.gz uhd-6b857404551a0e03de1f729c378a8e6099831ae0.tar.bz2 uhd-6b857404551a0e03de1f729c378a8e6099831ae0.zip |
b200: on startup when the bad USB state is detected, print this out for the user to see, with brevity.
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index 6bd49e013..2a590b717 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -259,6 +259,7 @@ static device::sptr b200_make(const device_addr_t &device_addr) return device::sptr(new b200_impl(device_addr, handle)); } catch (const uhd::usb_error &e) { + UHD_MSG(status) << "Detected bad USB state; resetting." << std::flush; libusb::device_handle::sptr dev_handle(libusb::device_handle::get_cached_handle( boost::static_pointer_cast<libusb::special_handle>(handle)->get_device() )); |