diff options
author | Pete Batard <pbatard@gmail.com> | 2010-01-14 01:27:50 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-01-14 01:27:50 +0000 |
commit | 94c6737e0f114037188c61c142cb0c44c5c8e752 (patch) | |
tree | 4feaff5602d4e32a740ec144674c8134045c6403 | |
parent | e44f764c22622c8ddf824d037ea41b9f485ee8ef (diff) | |
download | libusb-94c6737e0f114037188c61c142cb0c44c5c8e752.tar.gz |
svn r48: - less annoying windows_set_configuration
-rw-r--r-- | libusb/os/windows_usb.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index c4967cf..7c67aed 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -1233,8 +1233,7 @@ static int windows_get_configuration(struct libusb_device_handle *dev_handle, in * from http://msdn.microsoft.com/en-us/library/ms793522.aspx: "The port driver
* does not currently expose a service that allows higher-level drivers to set
* the configuration."
- * The current version of this function still attempts to change conf to see
- * what happens...
+ * TODO: See what users of devices with multiple confs report with this call
*/
static int windows_set_configuration(struct libusb_device_handle *dev_handle, int config) { @@ -1248,12 +1247,6 @@ static int windows_set_configuration(struct libusb_device_handle *dev_handle, in LIBUSB_REQUEST_SET_CONFIGURATION, config, 0, NULL, 0, 1000); - if (r == LIBUSB_SUCCESS) { - // TODO: If the above ever works, some code will be needed here - // to invalidate the endpoints & interfaces - usbi_dbg("against all odds, it worked! - now add some code"); - } - return r; } |