]> sigrok.org Git - pulseview.git/commit
decode: Fix mixup of bytes vs samples
authorDaniel Elstner <redacted>
Tue, 18 Feb 2014 22:41:33 +0000 (23:41 +0100)
committerDaniel Elstner <redacted>
Thu, 20 Feb 2014 20:17:44 +0000 (21:17 +0100)
commitc2d4e9df36b9c19c691ff6fcb57066fd84a652e3
tree84cf9dce565d6c03ce3808bca233ce7bb2ac2b62
parentd48a82ee525e08d6e8088f1312adc2116c624621
decode: Fix mixup of bytes vs samples

(DecoderStack::decode_proc): The final argument to srd_session_send()
is a byte count, not a sample count.
(LogicSnapshot::get_samples): Multiply start_sample by the unit size
to get the byte offset into the buffer.
pv/data/decoderstack.cpp
pv/data/logicsnapshot.cpp