X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Frigol-ds%2Fapi.c;h=1f784cfce344177d997a08d5fc73e5a8f0f8e76a;hp=442f4820ce129accb62f5318683803909f8ac971;hb=a00106b7f819a2e64a65cfe767edae93bf2fb403;hpb=b7b873cea33d23b8368bef067934d03eab45c76f diff --git a/src/hardware/rigol-ds/api.c b/src/hardware/rigol-ds/api.c index 442f4820..1f784cfc 100644 --- a/src/hardware/rigol-ds/api.c +++ b/src/hardware/rigol-ds/api.c @@ -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; }