]> sigrok.org Git - libsigrok.git/blobdiff - hardware/uni-t-dmm/api.c
usb: sr_usb_find() uses standardized connection string to find a USB device
[libsigrok.git] / hardware / uni-t-dmm / api.c
index 11755bcdcc9730c8c46c09405887207b9858f231..b4beb5041e15a19509440e5bdaea079060af38f1 100644 (file)
@@ -100,7 +100,7 @@ static GSList *hw_scan(GSList *options)
 
        devices = NULL;
 
-       if (!(l = sr_usb_connect(drvc->sr_ctx->libusb_ctx, "1a86.e008")))
+       if (!(l = sr_usb_find(drvc->sr_ctx->libusb_ctx, "1a86.e008")))
                return NULL;
 
        for (i = 0; i < (int)g_slist_length(l); i++) {