---
src/scpi/scpi.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/scpi/scpi.c b/src/scpi/scpi.c
index 6450621..bb70997 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);
--
1.7.8.6
------------------------------------------------------------------------------
Slashdot TV. Videos for Nerds. Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel