From: Bert Vermeulen Date: Thu, 29 May 2014 20:58:58 +0000 (+0200) Subject: fx2lafw: Fix sample count. X-Git-Tag: libsigrok-0.4.0~1293 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=649e9e1677b9fefa790289feb66da9acd8579589;p=libsigrok.git fx2lafw: Fix sample count. --- diff --git a/hardware/fx2lafw/protocol.c b/hardware/fx2lafw/protocol.c index 836e2784..e9b56835 100644 --- a/hardware/fx2lafw/protocol.c +++ b/hardware/fx2lafw/protocol.c @@ -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,