fx2lafw: Send start command after bulk transfer have been set up

This commit is contained in:
Joel Holdsworth 2012-03-11 19:00:52 +00:00
parent 13d0d2698c
commit 017375d17e
1 changed files with 5 additions and 5 deletions

View File

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