From 51b294cd013db9d4d15f713c9ed576c343e685d6 Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Thu, 16 Jan 2014 18:57:45 +0000 Subject: [PATCH] rigol-ds: Reset num_frames to zero in dev_acquisition_start. --- hardware/rigol-ds/api.c | 2 ++ 1 file changed, 2 insertions(+) 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);