Fix #574 by setting up the transfer first, then starting acquisition

This commit is contained in:
Soeren Apel 2015-07-05 18:01:45 +02:00 committed by Uwe Hermann
parent d586a7f4bd
commit 815e3cb83e
1 changed files with 4 additions and 2 deletions

View File

@ -780,9 +780,11 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
dslogic_trigger_request(sdi);
}
else {
if ((ret = fx2lafw_command_start_acquisition(sdi)) != SR_OK)
return ret;
start_transfers(sdi);
if ((ret = fx2lafw_command_start_acquisition(sdi)) != SR_OK) {
fx2lafw_abort_acquisition(devc);
return ret;
}
}
return SR_OK;