]> sigrok.org Git - libsigrok.git/commitdiff
dreamsourcelab-dslogic: Don't check for USB manufacturer/product.
authorUwe Hermann <redacted>
Wed, 21 Jun 2017 05:53:20 +0000 (07:53 +0200)
committerUwe Hermann <redacted>
Wed, 21 Jun 2017 16:02:50 +0000 (18:02 +0200)
Before firmware upload some models (e.g. the original DSLogic or the
DSLogic Pro) don't have any USB manufacturer or product strings set, so
they wouldn't be detected.

src/hardware/dreamsourcelab-dslogic/api.c

index c5724c100d1b754589fdb381b9b5e79c1ce95987..84564d763e37af5bfaf2409e7644bb00ba1765a5 100644 (file)
@@ -217,10 +217,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
                prof = NULL;
                for (j = 0; supported_device[j].vid; j++) {
                        if (des.idVendor == supported_device[j].vid &&
-                                       des.idProduct == supported_device[j].pid &&
-                                       (!strcmp(manufacturer, supported_device[j].usb_manufacturer)) &&
-                                       (!strcmp(product, "USB-based Instrument") ||
-                                               !strcmp(product, supported_device[j].usb_product))) {
+                                       des.idProduct == supported_device[j].pid) {
                                prof = &supported_device[j];
                                break;
                        }