Fixed LongPulses test packet setup
authorJoel Holdsworth <joel@airwebreathe.org.uk>
Sun, 13 Jan 2013 13:42:36 +0000 (13:42 +0000)
committerJoel Holdsworth <joel@airwebreathe.org.uk>
Sun, 13 Jan 2013 13:42:50 +0000 (13:42 +0000)
The length field is now populated with the number of bytes rather
than the number of samples

test/data/logicsnapshot.cpp

index 951e3845b1d5651d2c739bbf88d35261965b9477..3e3ff2f959da2577b2e21d3083c44146bbeddc34 100644 (file)
@@ -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;