From: Soeren Apel Date: Fri, 31 Jul 2015 05:33:23 +0000 (+0200) Subject: Fix #599 by supplying correct length to create_logic_packet() X-Git-Tag: pulseview-0.3.0~156 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a42efb9d247268dde5c78f112b3970211bac4088;p=pulseview.git Fix #599 by supplying correct length to create_logic_packet() --- diff --git a/pv/storesession.cpp b/pv/storesession.cpp index bf214554..e4af5db7 100644 --- a/pv/storesession.cpp +++ b/pv/storesession.cpp @@ -198,7 +198,7 @@ void StoreSession::store_proc(shared_ptr segment) start_sample + samples_per_block, sample_count); segment->get_samples(data, start_sample, end_sample); - size_t length = end_sample - start_sample; + size_t length = (end_sample - start_sample) * unit_size; try { const auto context = session_.device_manager().context();