diff options
-rw-r--r-- | examples/xusb.c | 3 | ||||
-rw-r--r-- | libusb/os/windows_usb.c | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/examples/xusb.c b/examples/xusb.c index d2b9a7b..4ebd37a 100644 --- a/examples/xusb.c +++ b/examples/xusb.c @@ -666,8 +666,6 @@ int test_device(uint16_t vid, uint16_t pid) } libusb_free_config_descriptor(conf_desc); - // On Windows, autoclaim will sort things out -#ifndef OS_WINDOWS for (iface = 0; iface < nb_ifaces; iface++) { printf("\nClaiming interface %d...\n", iface); @@ -686,7 +684,6 @@ int test_device(uint16_t vid, uint16_t pid) perr(" Failed.\n"); } } -#endif printf("\nReading string descriptors:\n"); r = libusb_get_string_descriptor(handle, 0, 0, string, 128); diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 09dd8dd..d68d377 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -29,7 +29,7 @@ // option below is enabled. #define USE_HIDD_FOR_REPORTS // - Should libusb automatically claim the interfaces it requires? -#define AUTO_CLAIM +//#define AUTO_CLAIM // - Forces instant overlapped completion on timeouts: can prevents extensive // wait in poll, after a timeout, but might affect subsequent API calls. // ***USE AT YOUR OWN RISKS*** |