add libusb_reset_device before configuration

This commit is contained in:
shakemid 2018-11-23 00:18:29 +09:00
parent 00c2bc2532
commit 56423c8386

View file

@ -210,6 +210,7 @@ int setup_libusb_access(temper_device_t *devices) {
for (i = 0; i < numdev; i++) {
usb_detach(devices[i].handle, INTERFACE1);
usb_detach(devices[i].handle, INTERFACE2);
libusb_reset_device(devices[i].handle);
if (libusb_set_configuration(devices[i].handle, 0x01) < 0) {
fprintf(stderr, "Could not set configuration 1\n");