From 37fdce0ac5e92fe0dfdee42f80e4dfe2eab332f0 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sun, 13 Jan 2013 13:42:36 +0000 Subject: [PATCH] Fixed LongPulses test packet setup The length field is now populated with the number of bytes rather than the number of samples --- test/data/logicsnapshot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2