From: Martin Ling Date: Thu, 16 Jan 2014 18:57:45 +0000 (+0000) Subject: rigol-ds: Reset num_frames to zero in dev_acquisition_start. X-Git-Tag: libsigrok-0.3.0~254 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=51b294cd013db9d4d15f713c9ed576c343e685d6;p=libsigrok.git rigol-ds: Reset num_frames to zero in dev_acquisition_start. --- diff --git a/hardware/rigol-ds/api.c b/hardware/rigol-ds/api.c index d6101874..2089865a 100644 --- a/hardware/rigol-ds/api.c +++ b/hardware/rigol-ds/api.c @@ -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);