]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: Fix sample count.
authorBert Vermeulen <redacted>
Thu, 29 May 2014 20:58:58 +0000 (22:58 +0200)
committerBert Vermeulen <redacted>
Thu, 29 May 2014 20:58:58 +0000 (22:58 +0200)
hardware/fx2lafw/protocol.c

index 836e27840941cbb2e9a114bd2048d1323d842ab4..e9b56835dbdae8da2e51aa02a9a2be39afb56b8b 100644 (file)
@@ -457,7 +457,7 @@ SR_PRIV void fx2lafw_receive_transfer(struct libusb_transfer *transfer)
                        logic.unitsize = unitsize;
                        logic.data = transfer->buffer;
                        sr_session_send(devc->cb_data, &packet);
-                       devc->sent_samples += cur_sample_count;
+                       devc->sent_samples += num_samples;
                }
        } else {
                trigger_offset = soft_trigger_logic_check(devc->stl,