scpi: Populate sdi->connection_id
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 @@
 		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);