scpi: Don't return NULL device from unsuccessful scan.
This commit is contained in:
parent
bfc8679937
commit
cfd8ec53ab
|
@ -157,6 +157,7 @@ SR_PRIV GSList *sr_scpi_scan(struct drv_context *drvc, GSList *options,
|
||||||
|
|
||||||
if (!devices && resource) {
|
if (!devices && resource) {
|
||||||
sdi = sr_scpi_scan_resource(drvc, resource, serialcomm, probe_device);
|
sdi = sr_scpi_scan_resource(drvc, resource, serialcomm, probe_device);
|
||||||
|
if (sdi)
|
||||||
devices = g_slist_append(NULL, sdi);
|
devices = g_slist_append(NULL, sdi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue