Commits

Alex Hixon committed 32a2700

Work around bug in libusb when looping through devices with empty vendor and product IDs.

  • Participants
  • Parent commits 50058c4

Comments (0)

Files changed (1)

             do {
                 devinfo = devices[i];
                 if (dev->descriptor.idVendor == devinfo.usb_vendor &&
-                    dev->descriptor.idProduct == devinfo.usb_product) {
+                    dev->descriptor.idProduct == devinfo.usb_product &&
+                    dev->descriptor.idVendor != 0) {
                     
                     *version = devinfo.ucode_version;
                     return dev;