From: Martin Ling Date: Sat, 24 Oct 2015 20:33:34 +0000 (+0100) Subject: rigol-ds: After successfully finding a device, close it properly. X-Git-Tag: libsigrok-0.4.0~185 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b7b873cea33d23b8368bef067934d03eab45c76f;p=libsigrok.git rigol-ds: After successfully finding a device, close it properly. --- diff --git a/src/hardware/rigol-ds/api.c b/src/hardware/rigol-ds/api.c index 58cb7cce..442f4820 100644 --- a/src/hardware/rigol-ds/api.c +++ b/src/hardware/rigol-ds/api.c @@ -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; }