fx2lafw: Send start command after bulk transfer have been set up
This commit is contained in:
parent
13d0d2698c
commit
017375d17e
|
@ -620,11 +620,6 @@ static int hw_dev_acquisition_start(int dev_index, void *cb_data)
|
||||||
return SR_ERR_MALLOC;
|
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. */
|
/* Start with 2K transfer, subsequently increased to 4K. */
|
||||||
size = 2048;
|
size = 2048;
|
||||||
for (i = 0; i < NUM_SIMUL_TRANSFERS; i++) {
|
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(header);
|
||||||
g_free(packet);
|
g_free(packet);
|
||||||
|
|
||||||
|
if ((err = command_start_acquisition (ctx->usb->devhdl,
|
||||||
|
ctx->cur_samplerate)) != SR_OK) {
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
return SR_OK;
|
return SR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue