From: Bert Vermeulen Date: Sun, 11 Aug 2013 08:52:43 +0000 (+0200) Subject: uni-t-dmm: Require conn parameter for scan X-Git-Tag: libsigrok-0.2.2~94 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=56e76981bc5e8e8d138275ad215e96d8ab4939af;p=libsigrok.git uni-t-dmm: Require conn parameter for scan 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. --- diff --git a/hardware/uni-t-dmm/api.c b/hardware/uni-t-dmm/api.c index 05c1c47e..e766fd85 100644 --- a/hardware/uni-t-dmm/api.c +++ b/hardware/uni-t-dmm/api.c @@ -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))) {