#include "sigrok.h"
#include "sigrok-internal.h"
#include "fx2lafw.h"
+#include "command.h"
static struct fx2lafw_profile supported_fx2[] = {
/* USBee AX */
struct context *ctx;
struct libusb_transfer *transfer;
const struct libusb_pollfd **lupfd;
- int size, i;
+ int err, size, i;
unsigned char *buf;
if (!(sdi = sr_dev_inst_get(dev_insts, dev_index)))
return SR_ERR_MALLOC;
}
+ if ((err = command_start_acquisition (ctx->usb->devhdl)) != SR_OK) {
+ return err;
+ }
+
/* Start with 2K transfer, subsequently increased to 4K. */
size = 2048;
for (i = 0; i < NUM_SIMUL_TRANSFERS; i++) {