]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: Fix rigol_ds_channel_start() for digital channels.
authorMartin Ling <redacted>
Fri, 27 Dec 2013 22:28:17 +0000 (23:28 +0100)
committerBert Vermeulen <redacted>
Sat, 28 Dec 2013 13:05:56 +0000 (14:05 +0100)
hardware/rigol-ds/protocol.c

index b11fb2c75d82bb8833fa97e1104f67fbe0d99cb8..fa4a2217162aabe9e3c6dc1ee376b8218aa603dd 100644 (file)
@@ -328,7 +328,7 @@ SR_PRIV int rigol_ds_channel_start(const struct sr_dev_inst *sdi)
               devc->channel->index + 1);
 
        if (devc->model->protocol == PROTOCOL_LEGACY) {
-               if (devc->channel->type == SR_DF_LOGIC) {
+               if (devc->channel->type == SR_PROBE_LOGIC) {
                        if (sr_scpi_send(sdi->conn, ":WAV:DATA? DIG") != SR_OK)
                                return SR_ERR;
                } else {