X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Ffx2lafw%2Ffx2lafw.c;h=88641163520b54adbabdca5b685f8afe5e1098f8;hb=17b6c75a899bb5fb2b8b841b60e3e9fb52ca3e30;hp=359df017a56f223817453ce5be5f330b8af15b08;hpb=9031ce63f3cee037ffc3e565cf324cafe38522f5;p=libsigrok.git diff --git a/hardware/fx2lafw/fx2lafw.c b/hardware/fx2lafw/fx2lafw.c index 359df017..88641163 100644 --- a/hardware/fx2lafw/fx2lafw.c +++ b/hardware/fx2lafw/fx2lafw.c @@ -29,7 +29,9 @@ #include "command.h" static struct fx2lafw_profile supported_fx2[] = { - /* USBee AX */ + /* CWAV USBee AX + * EE Electronics ESLA201A + */ { 0x08a9, 0x0014, "CWAV", "USBee AX", NULL, 8 }, { 0, 0, 0, 0, 0, 0 } }; @@ -620,11 +622,6 @@ static int hw_dev_acquisition_start(int dev_index, void *cb_data) return SR_ERR_MALLOC; } - if ((err = command_start_acquisition (ctx->usb->devhdl, - ctx->cur_samplerate)) != SR_OK) { - return err; - } - /* Start with 2K transfer, subsequently increased to 4K. */ size = 2048; for (i = 0; i < NUM_SIMUL_TRANSFERS; i++) { @@ -661,6 +658,11 @@ static int hw_dev_acquisition_start(int dev_index, void *cb_data) g_free(header); g_free(packet); + if ((err = command_start_acquisition (ctx->usb->devhdl, + ctx->cur_samplerate)) != SR_OK) { + return err; + } + return SR_OK; }