]> sigrok.org Git - libsigrok.git/commitdiff
uni-t-dmm: Require conn parameter for scan
authorBert Vermeulen <redacted>
Sun, 11 Aug 2013 08:52:43 +0000 (10:52 +0200)
committerBert Vermeulen <redacted>
Sun, 11 Aug 2013 08:52:43 +0000 (10:52 +0200)
Since the uni-t-ut32x series handles devices with the same USB VID.PID,
which is linked to the WCH CH9325 USB/HID-UART interface chip, this
driver can no longer assume it can handle anything with this VID.PID.

hardware/uni-t-dmm/api.c

index 05c1c47e4e0204c2b53ec9f4d771a3eaaacb37fa..e766fd8565d850e19d8b477ef1b44e9f2f34dc46 100644 (file)
@@ -149,7 +149,7 @@ static GSList *scan(GSList *options, int dmm)
                }
        }
        if (!conn)
-               conn = UNI_T_UT_D04_NEW;
+               return NULL;
 
        devices = NULL;
        if (!(usb_devices = sr_usb_find(drvc->sr_ctx->libusb_ctx, conn))) {