From fef90b410162bcdb3a7690e15dfabbf90b4f595d Mon Sep 17 00:00:00 2001 From: Vlad Ivanov Date: Sun, 13 Nov 2016 14:22:27 +0300 Subject: [PATCH] fx2lafw: fix device product string check Signed-off-by: Vlad Ivanov --- src/hardware/fx2lafw/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/fx2lafw/api.c b/src/hardware/fx2lafw/api.c index 0f9cadb6..370b1c0e 100644 --- a/src/hardware/fx2lafw/api.c +++ b/src/hardware/fx2lafw/api.c @@ -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;