aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/libusb1_control.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2013-07-15 15:57:53 -0700
committerJosh Blum <josh@joshknows.com>2013-07-15 15:57:53 -0700
commit719569ffbbf03ec62e14cb8527b254d77bfdfc43 (patch)
tree9b62f16c6d293d81e3bc0214d29e9aee6d0bcf0b /host/lib/transport/libusb1_control.cpp
parentb1397e1f48d5966238a409ceb44798dc6c22e80b (diff)
downloaduhd-719569ffbbf03ec62e14cb8527b254d77bfdfc43.tar.gz
uhd-719569ffbbf03ec62e14cb8527b254d77bfdfc43.tar.bz2
uhd-719569ffbbf03ec62e14cb8527b254d77bfdfc43.zip
usb: added timeout param and additional queries
Diffstat (limited to 'host/lib/transport/libusb1_control.cpp')
-rw-r--r--host/lib/transport/libusb1_control.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/host/lib/transport/libusb1_control.cpp b/host/lib/transport/libusb1_control.cpp
index 3d9b38785..c1b8fe6df 100644
--- a/host/lib/transport/libusb1_control.cpp
+++ b/host/lib/transport/libusb1_control.cpp
@@ -21,8 +21,6 @@
using namespace uhd::transport;
-const int libusb_timeout = 0;
-
/***********************************************************************
* libusb-1.0 implementation of USB control transport
**********************************************************************/
@@ -39,7 +37,8 @@ public:
boost::uint16_t value,
boost::uint16_t index,
unsigned char *buff,
- boost::uint16_t length
+ boost::uint16_t length,
+ boost::int32_t libusb_timeout = 0
){
boost::mutex::scoped_lock lock(_mutex);
return libusb_control_transfer(_handle->get(),