]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: After successfully finding a device, close it properly.
authorMartin Ling <redacted>
Sat, 24 Oct 2015 20:33:34 +0000 (21:33 +0100)
committerUwe Hermann <redacted>
Sat, 24 Oct 2015 20:50:37 +0000 (22:50 +0200)
src/hardware/rigol-ds/api.c

index 58cb7cced59e206d9abe4d31c535caeabd98516b..442f4820ce129accb62f5318683803909f8ac971 100644 (file)
@@ -404,6 +404,10 @@ 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;
 }