]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.c
fx2lafw: Implemented control of sample rates
[libsigrok.git] / hardware / fx2lafw / fx2lafw.c
index e213df9c2cd18ef4b6df5b090acc468a9d3b93a5..cb9963f52eac11389219968cc17570200dc264af 100644 (file)
@@ -625,7 +625,8 @@ static int hw_dev_acquisition_start(int dev_index, void *cb_data)
                return SR_ERR_MALLOC;
        }
 
-       if ((err = command_start_acquisition (ctx->usb->devhdl)) != SR_OK) {
+       if ((err = command_start_acquisition (ctx->usb->devhdl,
+               ctx->cur_samplerate)) != SR_OK) {
                return err;
        }