diff options
-rw-r--r-- | libusb/os/linux_usbfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/linux_usbfs.c b/libusb/os/linux_usbfs.c index d0db7e2..ed1ce13 100644 --- a/libusb/os/linux_usbfs.c +++ b/libusb/os/linux_usbfs.c @@ -484,7 +484,7 @@ static int sysfs_get_active_config_descriptor(struct libusb_device *dev, if (off < 0) return LIBUSB_ERROR_IO; - r = seek_to_next_config(DEVICE_CTX(dev), fd, 1); + r = seek_to_next_config(DEVICE_CTX(dev), fd, 0); if (r < 0) return r; } @@ -539,7 +539,7 @@ static int get_config_descriptor(struct libusb_context *ctx, int fd, /* might need to skip some configuration descriptors to reach the * requested configuration */ while (config_index > 0) { - r = seek_to_next_config(ctx, fd, 0); + r = seek_to_next_config(ctx, fd, 1); if (r < 0) return r; config_index--; |