Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Only blacklist devices on iManufacturer if they don't have an iProduct
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolivas committed Jun 12, 2015
1 parent bf261a8 commit f8f6cee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usbutils.c
Expand Up @@ -2168,6 +2168,10 @@ static int _usb_init(struct cgpu_info *cgpu, struct libusb_device *dev, struct u

if (!iManufacturer)
continue;
/* If the alternative driver also has an iProduct, only
* use that for comparison. */
if (find_dev[i].iProduct)
continue;
if (!strcmp((char *)man, iManufacturer)) {
applog(LOG_DEBUG, "USB init, alternative iManufacturer match %s",
devstr);
Expand Down

0 comments on commit f8f6cee

Please sign in to comment.