From: Soeren Apel Date: Thu, 16 Oct 2014 20:41:57 +0000 (+0200) Subject: scpi: Populate sdi->connection_id X-Git-Tag: libsigrok-0.4.0~846 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b2c02b0747a413be1ebfb26a15ce692ad6beb49e;p=libsigrok.git scpi: Populate sdi->connection_id --- diff --git a/src/scpi/scpi.c b/src/scpi/scpi.c index 64506215..bb709978 100644 --- a/src/scpi/scpi.c +++ b/src/scpi/scpi.c @@ -148,8 +148,10 @@ SR_PRIV GSList *sr_scpi_scan(struct drv_context *drvc, GSList *options, for (l = resources; l; l = l->next) { res = g_strsplit(l->data, ":", 2); if (res[0] && (sdi = sr_scpi_scan_resource(drvc, res[0], - serialcomm ? serialcomm : res[1], probe_device))) + serialcomm ? serialcomm : res[1], probe_device))) { devices = g_slist_append(devices, sdi); + sdi->connection_id = g_strdup(l->data); + } g_strfreev(res); } g_slist_free_full(resources, g_free);