Skip to content

Commit baa0dab

Browse files
authored
Only enumerate each interface once (#625)
If a device has multiple altsettings, like an Xbox Series X controller, make sure we only enumerate each interface once, not once for each altsetting.
1 parent 1ba21ce commit baa0dab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libusb/hid.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,7 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
885885
libusb_close(handle);
886886
handle = NULL;
887887
}
888+
break;
888889
}
889890
} /* altsettings */
890891
} /* interfaces */

0 commit comments

Comments
 (0)