]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: fix device product string check
authorVlad Ivanov <redacted>
Sun, 13 Nov 2016 11:22:27 +0000 (14:22 +0300)
committerUwe Hermann <redacted>
Mon, 5 Dec 2016 01:16:56 +0000 (02:16 +0100)
Signed-off-by: Vlad Ivanov <redacted>
src/hardware/fx2lafw/api.c

index 0f9cadb64cc5337789482facc4e35a406b5a4f6b..370b1c0ea808670e988536fe87491768836c7b9b 100644 (file)
@@ -335,7 +335,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
                                        des.idProduct == supported_fx2[j].pid &&
                                        (!supported_fx2[j].usb_manufacturer ||
                                         !strcmp(manufacturer, supported_fx2[j].usb_manufacturer)) &&
-                                       (!supported_fx2[j].usb_manufacturer ||
+                                       (!supported_fx2[j].usb_product ||
                                         !strcmp(product, supported_fx2[j].usb_product))) {
                                prof = &supported_fx2[j];
                                break;