fx2lafw: Only run dslogic_stop_acquisition() on DSLogic.

This commit is contained in:
Uwe Hermann 2016-04-17 15:49:47 +02:00
parent 40ebad3524
commit 1a7ff3d087
1 changed files with 7 additions and 1 deletions

View File

@ -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;