]> sigrok.org Git - libsigrok.git/commit - src/hardware/demo/api.c
demo: Don't generate analog output data for disabled channels
authorGerhard Sittig <redacted>
Sat, 17 Jun 2017 18:33:12 +0000 (20:33 +0200)
committerUwe Hermann <redacted>
Fri, 23 Jun 2017 17:33:24 +0000 (19:33 +0200)
commit01f2adb07a66a4e8e8a6102c7f6bb905007d606a
treee467c3092c1ee578d48229d7c2258d4620b98595
parentd1144645512490c64813f4ef5a5b0c305de50260
demo: Don't generate analog output data for disabled channels

Skip the emission of session datafeed packets for disabled analog
channels.

Implementation detail: Allow for quick lookup of the channel that is
associated with an analog generator, as the data generation routines
only pass generator references in later calls.

This fixes part of bug #923 (which initially is about unexpected
logic data while analog channels were affected in similar ways).
src/hardware/demo/api.c
src/hardware/demo/protocol.c
src/hardware/demo/protocol.h