From: Bert Vermeulen Date: Tue, 23 Sep 2014 20:40:47 +0000 (+0200) Subject: demo: Fix pattern mode and amplitude option publishing. X-Git-Tag: libsigrok-0.4.0~989 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f12d9979481c059825ee6aef2d6fdb85f0b2bba1;p=libsigrok.git demo: Fix pattern mode and amplitude option publishing. --- diff --git a/src/hardware/demo/demo.c b/src/hardware/demo/demo.c index 2609aa5f..a870c112 100644 --- a/src/hardware/demo/demo.c +++ b/src/hardware/demo/demo.c @@ -140,19 +140,17 @@ static const int devopts[] = { SR_CONF_SAMPLERATE | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST, SR_CONF_LIMIT_SAMPLES | SR_CONF_GET | SR_CONF_SET, SR_CONF_LIMIT_MSEC | SR_CONF_GET | SR_CONF_SET, - SR_CONF_PATTERN_MODE | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST, SR_CONF_NUM_LOGIC_CHANNELS | SR_CONF_GET, SR_CONF_NUM_ANALOG_CHANNELS | SR_CONF_GET, - SR_CONF_AMPLITUDE | SR_CONF_GET | SR_CONF_SET, }; static const int devopts_cg_logic[] = { - SR_CONF_PATTERN_MODE, + SR_CONF_PATTERN_MODE | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST, }; static const int devopts_cg_analog[] = { - SR_CONF_PATTERN_MODE, - SR_CONF_AMPLITUDE, + SR_CONF_PATTERN_MODE | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST, + SR_CONF_AMPLITUDE | SR_CONF_GET | SR_CONF_SET, }; static const uint64_t samplerates[] = {