From: Joel Holdsworth Date: Sun, 11 Mar 2012 19:00:52 +0000 (+0000) Subject: fx2lafw: Send start command after bulk transfer have been set up X-Git-Tag: libsigrok-0.1.0~53 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=017375d17ebddce8f986568a476018593c8b5ffc;p=libsigrok.git fx2lafw: Send start command after bulk transfer have been set up --- diff --git a/hardware/fx2lafw/fx2lafw.c b/hardware/fx2lafw/fx2lafw.c index 359df017..d1272dd1 100644 --- a/hardware/fx2lafw/fx2lafw.c +++ b/hardware/fx2lafw/fx2lafw.c @@ -620,11 +620,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 +656,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; }