From: Martin Ling Date: Fri, 17 Jan 2014 00:46:16 +0000 (+0000) Subject: rigol-ds: Update which channels are enabled after making changes. X-Git-Tag: libsigrok-0.3.0~241 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=904fd29b7255958f499719f4b7f8f653596e33c6;p=libsigrok.git rigol-ds: Update which channels are enabled after making changes. --- diff --git a/hardware/rigol-ds/api.c b/hardware/rigol-ds/api.c index 99d71831..63c6e225 100644 --- a/hardware/rigol-ds/api.c +++ b/hardware/rigol-ds/api.c @@ -820,6 +820,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) if (set_cfg(sdi, ":CHAN%d:DISP %s", probe->index + 1, probe->enabled ? "ON" : "OFF") != SR_OK) return SR_ERR; + devc->analog_channels[probe->index] = probe->enabled; } } else if (probe->type == SR_PROBE_LOGIC) { if (probe->enabled) { @@ -837,6 +838,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) if (set_cfg(sdi, ":DIG%d:TURN %s", probe->index, probe->enabled ? "ON" : "OFF") != SR_OK) return SR_ERR; + devc->digital_channels[probe->index] = probe->enabled; } } }