]> sigrok.org Git - libsigrok.git/blobdiff - hardware/hameg-hmo/api.c
hameg-hmo: Close the device after initial scan.
[libsigrok.git] / hardware / hameg-hmo / api.c
index 0877d235719292efaf7561e97950b874c4fe1133..3b474921d6699cfac35c717d5484b9a5ee652986 100644 (file)
@@ -251,6 +251,10 @@ static struct sr_dev_inst *hmo_probe_serial_device(const char *serial_device,
        if (hmo_init_device(sdi) != SR_OK)
                goto fail;
 
+       sr_scpi_close(sdi->conn);
+
+       sdi->status = SR_ST_INACTIVE;
+
        return sdi;
 
 fail: