From: Uwe Hermann Date: Sun, 17 Apr 2016 13:49:47 +0000 (+0200) Subject: fx2lafw: Only run dslogic_stop_acquisition() on DSLogic. X-Git-Tag: libsigrok-0.5.0~509 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1a7ff3d08765744e607af4b6ef35f3b4bace7daa;p=libsigrok.git fx2lafw: Only run dslogic_stop_acquisition() on DSLogic. --- diff --git a/src/hardware/fx2lafw/api.c b/src/hardware/fx2lafw/api.c index 4af9dd8a..076c6a2e 100644 --- a/src/hardware/fx2lafw/api.c +++ b/src/hardware/fx2lafw/api.c @@ -821,9 +821,15 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data) { + struct dev_context *devc; + (void)cb_data; - dslogic_stop_acquisition(sdi); + devc = sdi->priv; + + if (devc->dslogic) + dslogic_stop_acquisition(sdi); + fx2lafw_abort_acquisition(sdi->priv); return SR_OK;