ikalogic-scanalogic2: Let the sdi getter popuplage sdi->connection_id
This fixes bug #440.
This commit is contained in:
parent
0157fdce99
commit
c962d07cba
|
@ -71,7 +71,6 @@ static GSList *scan(GSList *options)
|
||||||
struct device_info dev_info;
|
struct device_info dev_info;
|
||||||
int ret, i;
|
int ret, i;
|
||||||
char *fw_ver_str;
|
char *fw_ver_str;
|
||||||
char connection_id[64];
|
|
||||||
|
|
||||||
(void)options;
|
(void)options;
|
||||||
|
|
||||||
|
@ -137,15 +136,11 @@ static GSList *scan(GSList *options)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
usb_get_port_path(libusb_get_device(usb->devhdl),
|
|
||||||
connection_id, sizeof(connection_id));
|
|
||||||
|
|
||||||
sdi->priv = devc;
|
sdi->priv = devc;
|
||||||
sdi->driver = di;
|
sdi->driver = di;
|
||||||
sdi->inst_type = SR_INST_USB;
|
sdi->inst_type = SR_INST_USB;
|
||||||
sdi->conn = usb;
|
sdi->conn = usb;
|
||||||
sdi->serial_num = g_strdup_printf("%d", dev_info.serial);
|
sdi->serial_num = g_strdup_printf("%d", dev_info.serial);
|
||||||
sdi->connection_id = g_strdup(connection_id);
|
|
||||||
|
|
||||||
for (i = 0; channel_names[i]; i++) {
|
for (i = 0; channel_names[i]; i++) {
|
||||||
ch = sr_channel_new(i, SR_CHANNEL_LOGIC, TRUE,
|
ch = sr_channel_new(i, SR_CHANNEL_LOGIC, TRUE,
|
||||||
|
|
Loading…
Reference in New Issue