]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: Update which channels are enabled after making changes.
authorMartin Ling <redacted>
Fri, 17 Jan 2014 00:46:16 +0000 (00:46 +0000)
committerMartin Ling <redacted>
Mon, 20 Jan 2014 00:24:14 +0000 (00:24 +0000)
hardware/rigol-ds/api.c

index 99d718313fc50dd24dbed2f876872847fe469778..63c6e22549c9108de17910b8a2cfdbc13589d9f6 100644 (file)
@@ -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;
                        }
                }
        }