From: Frank Stettner Date: Tue, 17 Dec 2019 13:17:55 +0000 (+0100) Subject: Add config key SR_CONF_RANGE. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=84b4f9a1fffb1223a78153111f3762cd12be2001;p=libsigrok.git Add config key SR_CONF_RANGE. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index a367ddef..75f0dce7 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -1015,6 +1015,9 @@ enum sr_configkey { /** Logic threshold: custom numerical value. */ SR_CONF_LOGIC_THRESHOLD_CUSTOM, + /** The measurement range of a DMM or the output range of a power supply. */ + SR_CONF_RANGE, + /* Update sr_key_info_config[] (hwdriver.c) upon changes! */ /*--- Special stuff -------------------------------------------------*/ diff --git a/src/hwdriver.c b/src/hwdriver.c index 38d74964..3d78e769 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -195,6 +195,8 @@ static struct sr_key_info sr_key_info_config[] = { "Logic threshold (predefined)", NULL}, {SR_CONF_LOGIC_THRESHOLD_CUSTOM, SR_T_FLOAT, "logic_threshold_custom", "Logic threshold (custom)", NULL}, + {SR_CONF_RANGE, SR_T_STRING, "range", + "Range", NULL}, /* Special stuff */ {SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile",