]> sigrok.org Git - libsigrok.git/commitdiff
Add config key SR_CONF_DIGITS.
authorFrank Stettner <redacted>
Tue, 17 Dec 2019 13:21:06 +0000 (14:21 +0100)
committerFrank Stettner <redacted>
Fri, 20 Dec 2019 12:02:06 +0000 (13:02 +0100)
include/libsigrok/libsigrok.h
src/hwdriver.c

index 75f0dce7a194ef65b9c2122095e5bf33b753e001..7dcea492f4450f0dadfa543e2b8346a7698581ca 100644 (file)
@@ -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 -------------------------------------------------*/
index 3d78e769fb2b1067b64ff7b1c20e8c45a8ebac0c..cc541550b3ae3b8c2eea86690092ef680b516ae0 100644 (file)
@@ -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",