]> sigrok.org Git - libsigrok.git/commit
baylibre-acme: Dynamically check per probe config options.
authorBartosz Golaszewski <redacted>
Fri, 3 Apr 2015 12:58:11 +0000 (14:58 +0200)
committerUwe Hermann <redacted>
Sun, 12 Apr 2015 15:16:32 +0000 (17:16 +0200)
commit1fe04eb8d6c84c0013413991d0632022fc0643f7
tree0a4dc2e8929b9713cb9fefb7d745c5712d3f139d
parent1190c65397e8246bd3b437006bacc5b7dc9d2bde
baylibre-acme: Dynamically check per probe config options.

PROBE_FACTOR and POWER_OFF options are advertised for all ACME probes
(channel groups) regardless of whether they actually have given capability.

Check these options in config_list() at runtime and only advertise them
for probes which support them.

Signed-off-by: Bartosz Golaszewski <redacted>
src/hardware/baylibre-acme/api.c
src/hardware/baylibre-acme/protocol.c
src/hardware/baylibre-acme/protocol.h