From 4984ca28f72547030c08f9c6859ddf3760e08e37 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 21 Jun 2017 07:53:20 +0200 Subject: [PATCH] dreamsourcelab-dslogic: Don't check for USB manufacturer/product. 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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hardware/dreamsourcelab-dslogic/api.c b/src/hardware/dreamsourcelab-dslogic/api.c index c5724c10..84564d76 100644 --- a/src/hardware/dreamsourcelab-dslogic/api.c +++ b/src/hardware/dreamsourcelab-dslogic/api.c @@ -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; }