]> sigrok.org Git - libsigrok.git/commit
demo: Properly handle low samplerates
authorSoeren Apel <redacted>
Wed, 11 Oct 2017 16:14:56 +0000 (18:14 +0200)
committerUwe Hermann <redacted>
Thu, 2 Nov 2017 13:28:16 +0000 (14:28 +0100)
commit767ca13532a96ecc76c083b3041a2d9409977fa5
tree344ce02a76addd6cab1589225b0880a5d516aea8
parente0b6855bd4daca9f1a27b8e4e0d16b019d5d54e4
demo: Properly handle low samplerates

A "low samplerate" in this case means anything where
samples_todo is less than SAMPLES_PER_FRAME. This case
wasn't handled properly before, resulting in wrong
amounts of data being sent out.
src/hardware/demo/api.c
src/hardware/demo/protocol.c
src/hardware/demo/protocol.h