From: Bert Vermeulen Date: Mon, 27 Oct 2014 15:59:01 +0000 (+0100) Subject: Change SR_CONF_FILTER key to a boolean type. X-Git-Tag: libsigrok-0.4.0~819 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6fad08e6abfa4e5ee708f584e530c6b611a65cdb;p=libsigrok.git Change SR_CONF_FILTER key to a boolean type. This was an ill-defined string before, now it's simply something you turn on or off on a channel. --- diff --git a/src/hwdriver.c b/src/hwdriver.c index f9649f0c..c7dc616c 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -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",