]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/testo/protocol.c
sr_dev_close(): Factor out SR_ERR_DEV_CLOSED check.
[libsigrok.git] / src / hardware / testo / protocol.c
index 3fc7806f0247df5a617cb0ba6041c9e1136b4b44..8ea254eb17aaf8320390a5e037e25b84619a3d1e 100644 (file)
@@ -108,7 +108,7 @@ SR_PRIV int testo_probe_channels(struct sr_dev_inst *sdi)
                        /* Got a complete packet. */
                        break;
        }
-       sdi->driver->dev_close(sdi);
+       sr_dev_close(sdi);
 
        if (packet[6] > MAX_CHANNELS) {
                sr_err("Device says it has %d channels!", packet[6]);