From f12d9979481c059825ee6aef2d6fdb85f0b2bba1 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Tue, 23 Sep 2014 22:40:47 +0200 Subject: [PATCH] demo: Fix pattern mode and amplitude option publishing. --- src/hardware/demo/demo.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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[] = {