]> sigrok.org Git - libsigrok.git/commitdiff
zeroplus: Properly set inst_type to SR_INST_USB.
authorUwe Hermann <redacted>
Fri, 10 May 2013 17:16:25 +0000 (19:16 +0200)
committerUwe Hermann <redacted>
Fri, 10 May 2013 17:16:25 +0000 (19:16 +0200)
hardware/zeroplus-logic-cube/api.c

index 13c649df652730fb823fe241367889977118c1dd..bd94315426a6a770590290ea78635d43b0c07994 100644 (file)
@@ -328,6 +328,7 @@ static GSList *hw_scan(GSList *options)
 
                devices = g_slist_append(devices, sdi);
                drvc->instances = g_slist_append(drvc->instances, sdi);
+               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);