From: Frank Stettner Date: Tue, 17 Dec 2019 13:21:06 +0000 (+0100) Subject: Add config key SR_CONF_DIGITS. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ccf68765aaf76e1ef89b8c81bf3a8d4a8161488f;p=libsigrok.git Add config key SR_CONF_DIGITS. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 75f0dce7..7dcea492 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -1018,6 +1018,9 @@ enum sr_configkey { /** The measurement range of a DMM or the output range of a power supply. */ SR_CONF_RANGE, + /** The number of digits (e.g. for a DMM). */ + SR_CONF_DIGITS, + /* Update sr_key_info_config[] (hwdriver.c) upon changes! */ /*--- Special stuff -------------------------------------------------*/ diff --git a/src/hwdriver.c b/src/hwdriver.c index 3d78e769..cc541550 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -197,6 +197,8 @@ static struct sr_key_info sr_key_info_config[] = { "Logic threshold (custom)", NULL}, {SR_CONF_RANGE, SR_T_STRING, "range", "Range", NULL}, + {SR_CONF_DIGITS, SR_T_STRING, "digits", + "Digits", NULL}, /* Special stuff */ {SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile",