From: Martin Ling Date: Fri, 27 Dec 2013 22:28:17 +0000 (+0100) Subject: rigol-ds: Fix rigol_ds_channel_start() for digital channels. X-Git-Tag: libsigrok-0.3.0~387 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=07ccb2b3f1beda0f2bbb7cdbb830975b7bc739f2;p=libsigrok.git rigol-ds: Fix rigol_ds_channel_start() for digital channels. --- diff --git a/hardware/rigol-ds/protocol.c b/hardware/rigol-ds/protocol.c index b11fb2c7..fa4a2217 100644 --- a/hardware/rigol-ds/protocol.c +++ b/hardware/rigol-ds/protocol.c @@ -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 {