]> sigrok.org Git - libsigrok.git/commitdiff
Change SR_CONF_FILTER key to a boolean type.
authorBert Vermeulen <redacted>
Mon, 27 Oct 2014 15:59:01 +0000 (16:59 +0100)
committerBert Vermeulen <redacted>
Mon, 27 Oct 2014 16:09:57 +0000 (17:09 +0100)
This was an ill-defined string before, now it's simply something
you turn on or off on a channel.

src/hwdriver.c

index f9649f0c489666a5a4c9f7f039019bf93cdb4fce..c7dc616ca9f959e2f21ce6a27771c19c2f749a0f 100644 (file)
@@ -102,8 +102,8 @@ static struct sr_config_info sr_config_info_data[] = {
                "Buffer size", NULL},
        {SR_CONF_TIMEBASE, SR_T_RATIONAL_PERIOD, "timebase",
                "Time base", NULL},
-       {SR_CONF_FILTER, SR_T_STRING, "filter",
-               "Filter targets", NULL},
+       {SR_CONF_FILTER, SR_T_BOOL, "filter",
+               "Filter", NULL},
        {SR_CONF_VDIV, SR_T_RATIONAL_VOLT, "vdiv",
                "Volts/div", NULL},
        {SR_CONF_COUPLING, SR_T_STRING, "coupling",