From: Joel Holdsworth Date: Sun, 13 Jan 2013 13:42:36 +0000 (+0000) Subject: Fixed LongPulses test packet setup X-Git-Tag: pulseview-0.1.0~166 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=37fdce0ac5e92fe0dfdee42f80e4dfe2eab332f0;p=pulseview.git Fixed LongPulses test packet setup The length field is now populated with the number of bytes rather than the number of samples --- diff --git a/test/data/logicsnapshot.cpp b/test/data/logicsnapshot.cpp index 951e3845..3e3ff2f9 100644 --- a/test/data/logicsnapshot.cpp +++ b/test/data/logicsnapshot.cpp @@ -348,7 +348,7 @@ BOOST_AUTO_TEST_CASE(LongPulses) //----- Create a LogicSnapshot -----// sr_datafeed_logic logic; logic.unitsize = 8; - logic.length = Length; + logic.length = Length * 8; logic.data = (uint64_t*)new uint64_t[Length]; uint64_t *p = (uint64_t*)logic.data;