]> sigrok.org Git - libsigrok.git/commitdiff
uni-t-ut32x: Fix typo that prevents usage with multiple devices.
authorBert Vermeulen <redacted>
Fri, 17 Jan 2014 11:11:52 +0000 (12:11 +0100)
committerBert Vermeulen <redacted>
Fri, 17 Jan 2014 11:11:52 +0000 (12:11 +0100)
hardware/uni-t-ut32x/api.c

index 347149e0fcbd51bf4150fae7e5e57053355436f5..84f8719823c4003ac48ce4b36e01ccbc1dccdd07 100644 (file)
@@ -75,7 +75,7 @@ static GSList *scan(GSList *options)
                return NULL;
 
        devices = NULL;
-       if ((usb_devices = sr_usb_find(drvc->sr_ctx->libusb_ctx, USB_CONN))) {
+       if ((usb_devices = sr_usb_find(drvc->sr_ctx->libusb_ctx, conn))) {
                /* We have a list of sr_usb_dev_inst matching the connection
                 * string. Wrap them in sr_dev_inst and we're done. */
                for (l = usb_devices; l; l = l->next) {