]> sigrok.org Git - libsigrok.git/commit
demo: Only send average result data when averaging is active
authorGerhard Sittig <redacted>
Sat, 17 Jun 2017 17:23:35 +0000 (19:23 +0200)
committerUwe Hermann <redacted>
Fri, 23 Jun 2017 17:33:24 +0000 (19:33 +0200)
commitd1144645512490c64813f4ef5a5b0c305de50260
tree8e89e704206925d7d34a459dec0d5e7578ffbac5
parentd91d0b12505c4c9062e0b66775fa9d8431429f49
demo: Only send average result data when averaging is active

After the requested number of samples was sent, another session df
packet was emitted with one sample for the analog channels, which
contained the most recent result of averaging. Make this emission
depend on the "averaging requested?" flag.

This fixes bug #930.
src/hardware/demo/protocol.c