From: Vlad Ivanov Date: Sun, 13 Nov 2016 11:22:27 +0000 (+0300) Subject: fx2lafw: fix device product string check X-Git-Tag: libsigrok-0.5.0~168 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=fef90b410162bcdb3a7690e15dfabbf90b4f595d fx2lafw: fix device product string check Signed-off-by: Vlad Ivanov --- 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;