Add new config key OFFSET.

This commit is contained in:
Frank Stettner 2019-02-21 16:46:36 +01:00 committed by Uwe Hermann
parent a6e5d2f676
commit 78ec6cf99d
2 changed files with 5 additions and 0 deletions

View File

@ -995,6 +995,9 @@ enum sr_configkey {
*/ */
SR_CONF_EXTERNAL_CLOCK_SOURCE, SR_CONF_EXTERNAL_CLOCK_SOURCE,
/** Offset of a source without strictly-defined MQ. */
SR_CONF_OFFSET,
/* Update sr_key_info_config[] (hwdriver.c) upon changes! */ /* Update sr_key_info_config[] (hwdriver.c) upon changes! */
/*--- Special stuff -------------------------------------------------*/ /*--- Special stuff -------------------------------------------------*/

View File

@ -183,6 +183,8 @@ static struct sr_key_info sr_key_info_config[] = {
"Trigger level", NULL}, "Trigger level", NULL},
{SR_CONF_EXTERNAL_CLOCK_SOURCE, SR_T_STRING, "external_clock_source", {SR_CONF_EXTERNAL_CLOCK_SOURCE, SR_T_STRING, "external_clock_source",
"External clock source", NULL}, "External clock source", NULL},
{SR_CONF_OFFSET, SR_T_FLOAT, "offset",
"Offset", NULL},
/* Special stuff */ /* Special stuff */
{SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile", {SR_CONF_SESSIONFILE, SR_T_STRING, "sessionfile",