From: Benjamin Larsson Date: Mon, 4 Apr 2016 17:57:50 +0000 (+0200) Subject: hantek-6xxx: store the amount samples received X-Git-Tag: libsigrok-0.5.0~501 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=10e0d374cb9518d2d5e6d876bd72888478fd1900;p=libsigrok.git hantek-6xxx: store the amount samples received --- diff --git a/src/hardware/hantek-6xxx/api.c b/src/hardware/hantek-6xxx/api.c index c176727b..461c08a5 100644 --- a/src/hardware/hantek-6xxx/api.c +++ b/src/hardware/hantek-6xxx/api.c @@ -653,7 +653,7 @@ static void LIBUSB_CALL receive_transfer(struct libusb_transfer *transfer) } devc->sample_buf[devc->sample_buf_write++] = transfer; - devc->samp_received = transfer->actual_length / NUM_CHANNELS; + devc->samp_received += transfer->actual_length / NUM_CHANNELS; sr_spew("receive_transfer(): calculated samplerate == %" PRIu64 "ks/s", (uint64_t)(transfer->actual_length * 1000 /