]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: Reset num_frames to zero in dev_acquisition_start.
authorMartin Ling <redacted>
Thu, 16 Jan 2014 18:57:45 +0000 (18:57 +0000)
committerUwe Hermann <redacted>
Fri, 17 Jan 2014 00:52:29 +0000 (01:52 +0100)
hardware/rigol-ds/api.c

index d610187428d04426c004786834b5372da92fd4fd..2089865aa194cae679bb036a6243eae05355015d 100644 (file)
@@ -807,6 +807,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
        scpi = sdi->conn;
        devc = sdi->priv;
 
+       devc->num_frames = 0;
+
        for (l = sdi->probes; l; l = l->next) {
                probe = l->data;
                sr_dbg("handling probe %s", probe->name);