Add SR_CONF_UNDER_VOLTAGE_CONDITION* config keys.
Add two new config keys: - SR_CONF_UNDER_VOLTAGE_CONDITION - SR_CONF_UNDER_VOLTAGE_CONDITION_ACTIVE
This commit is contained in:
parent
8084e0fa81
commit
2fe1011f1d
|
@ -976,6 +976,12 @@ enum sr_configkey {
|
||||||
/** Over-temperature protection (OTP) active. */
|
/** Over-temperature protection (OTP) active. */
|
||||||
SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE,
|
SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE,
|
||||||
|
|
||||||
|
/** Under-voltage condition. */
|
||||||
|
SR_CONF_UNDER_VOLTAGE_CONDITION,
|
||||||
|
|
||||||
|
/** Under-voltage condition active. */
|
||||||
|
SR_CONF_UNDER_VOLTAGE_CONDITION_ACTIVE,
|
||||||
|
|
||||||
/* Update sr_key_info_config[] (hwdriver.c) upon changes! */
|
/* Update sr_key_info_config[] (hwdriver.c) upon changes! */
|
||||||
|
|
||||||
/*--- Special stuff -------------------------------------------------*/
|
/*--- Special stuff -------------------------------------------------*/
|
||||||
|
|
|
@ -171,6 +171,10 @@ static struct sr_key_info sr_key_info_config[] = {
|
||||||
"Equivalent circuit model", NULL},
|
"Equivalent circuit model", NULL},
|
||||||
{SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE, SR_T_BOOL, "otp_active",
|
{SR_CONF_OVER_TEMPERATURE_PROTECTION_ACTIVE, SR_T_BOOL, "otp_active",
|
||||||
"Over-temperature protection active", NULL},
|
"Over-temperature protection active", NULL},
|
||||||
|
{SR_CONF_UNDER_VOLTAGE_CONDITION, SR_T_BOOL, "uvc",
|
||||||
|
"Under-voltage condition", NULL},
|
||||||
|
{SR_CONF_UNDER_VOLTAGE_CONDITION_ACTIVE, SR_T_BOOL, "uvc_active",
|
||||||
|
"Under-voltage condition active", NULL},
|
||||||
|
|
||||||
/* Special stuff */
|
/* Special stuff */
|
||||||
{SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile",
|
{SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile",
|
||||||
|
|
Loading…
Reference in New Issue