]> sigrok.org Git - libsigrok.git/commit - src/hardware/demo/api.c
demo: Drop previous "default enabled" logic (experiment remainder)
authorGerhard Sittig <redacted>
Sun, 11 Jun 2017 19:02:57 +0000 (21:02 +0200)
committerUwe Hermann <redacted>
Fri, 23 Jun 2017 17:33:24 +0000 (19:33 +0200)
commitf1c79a6a35122139d41be5ba1fcbaa02ec274eb5
treeec560d4abd68c13290bf9133caf47edfa59be87e
parentecadb118453d0d45410bbda164f9bf8bde24f5bf
demo: Drop previous "default enabled" logic (experiment remainder)

A previous implementation of the demo driver supported the creation of
larger channel counts yet only enabling part of them by default. This
was kind of pointless, I just was not aware of the available scan
options.

Drop the "enabled channels" limitation, enable all channels that get
created (like the implementation before the experiment did), and create
as many channels as was compiled in by default or later got specified
by scan options.
src/hardware/demo/api.c