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.
This commit is contained in:
parent
d6ff054ae5
commit
56e76981bc
|
@ -149,7 +149,7 @@ static GSList *scan(GSList *options, int dmm)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!conn)
|
if (!conn)
|
||||||
conn = UNI_T_UT_D04_NEW;
|
return NULL;
|
||||||
|
|
||||||
devices = NULL;
|
devices = NULL;
|
||||||
if (!(usb_devices = sr_usb_find(drvc->sr_ctx->libusb_ctx, conn))) {
|
if (!(usb_devices = sr_usb_find(drvc->sr_ctx->libusb_ctx, conn))) {
|
||||||
|
|
Loading…
Reference in New Issue