mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-07-19 21:43:36 -04:00
Fixed simple logic error.
Emailed to me by Frode Austvik <edorfaus@xepher.net>
This commit is contained in:
+1
-1
@@ -330,7 +330,7 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
|
||||
hid_dev,
|
||||
"usb",
|
||||
"usb_interface");
|
||||
if (dev) {
|
||||
if (intf_dev) {
|
||||
str = udev_device_get_sysattr_value(intf_dev, "bInterfaceNumber");
|
||||
cur_dev->interface_number = (str)? strtol(str, NULL, 16): -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user