]> sigrok.org Git - libsigrok.git/commitdiff
demo: Fix pattern mode and amplitude option publishing.
authorBert Vermeulen <redacted>
Tue, 23 Sep 2014 20:40:47 +0000 (22:40 +0200)
committerBert Vermeulen <redacted>
Tue, 23 Sep 2014 20:40:47 +0000 (22:40 +0200)
src/hardware/demo/demo.c

index 2609aa5fe283543e8614e2d9b6830cf3a1c2a959..a870c112f28431856a322eb99c80809f9294c36c 100644 (file)
@@ -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[] = {