]> sigrok.org Git - libsigrok.git/commitdiff
hantek-dso: Mark connection as USB
authorBert Vermeulen <redacted>
Tue, 16 Apr 2013 23:08:18 +0000 (01:08 +0200)
committerBert Vermeulen <redacted>
Tue, 16 Apr 2013 23:08:18 +0000 (01:08 +0200)
hardware/hantek-dso/api.c

index 6583e0ff0d2729b5726ec2f598e061a4c2a60fee..528a86d8c9e3372b8cb1bc2202bdf16f72c0f439 100644 (file)
@@ -311,6 +311,7 @@ static GSList *hw_scan(GSList *options)
                                sdi->status = SR_ST_INACTIVE;
                                devices = g_slist_append(devices, sdi);
                                devc = sdi->priv;
+                               sdi->inst_type = SR_INST_USB;
                                sdi->conn = sr_usb_dev_inst_new(
                                                libusb_get_bus_number(devlist[i]),
                                                libusb_get_device_address(devlist[i]), NULL);