mirror of
https://github.com/shakemid/pcsensor-temper.git
synced 2025-01-21 09:08:17 +01:00
add libusb_reset_device before configuration
This commit is contained in:
parent
00c2bc2532
commit
56423c8386
1 changed files with 1 additions and 0 deletions
|
@ -210,6 +210,7 @@ int setup_libusb_access(temper_device_t *devices) {
|
||||||
for (i = 0; i < numdev; i++) {
|
for (i = 0; i < numdev; i++) {
|
||||||
usb_detach(devices[i].handle, INTERFACE1);
|
usb_detach(devices[i].handle, INTERFACE1);
|
||||||
usb_detach(devices[i].handle, INTERFACE2);
|
usb_detach(devices[i].handle, INTERFACE2);
|
||||||
|
libusb_reset_device(devices[i].handle);
|
||||||
|
|
||||||
if (libusb_set_configuration(devices[i].handle, 0x01) < 0) {
|
if (libusb_set_configuration(devices[i].handle, 0x01) < 0) {
|
||||||
fprintf(stderr, "Could not set configuration 1\n");
|
fprintf(stderr, "Could not set configuration 1\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue