]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/rigol-ds/api.c
scpi: Move closing of discovered devices to sr_scpi_scan_resource().
[libsigrok.git] / src / hardware / rigol-ds / api.c
index 442f4820ce129accb62f5318683803909f8ac971..1f784cfce344177d997a08d5fc73e5a8f0f8e76a 100644 (file)
@@ -313,7 +313,6 @@ static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi)
        }
 
        sdi = g_malloc0(sizeof(struct sr_dev_inst));
-       sdi->status = SR_ST_ACTIVE;
        sdi->vendor = g_strdup(model->series->vendor->name);
        sdi->model = g_strdup(model->name);
        sdi->version = g_strdup(hw_info->firmware_version);
@@ -404,10 +403,6 @@ static struct sr_dev_inst *probe_device(struct sr_scpi_dev_inst *scpi)
 
        sdi->priv = devc;
 
-       sdi->status = SR_ST_INACTIVE;
-
-       sr_scpi_close(scpi);
-
        return sdi;
 }