Fix various sample/time limit regressions.
These were accidentally introduced when the sw_limits helpers were added.
This commit is contained in:
parent
cb4b368f17
commit
cd04f641a5
|
@ -146,6 +146,7 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd
|
|||
|
||||
switch (key) {
|
||||
case SR_CONF_LIMIT_SAMPLES:
|
||||
case SR_CONF_LIMIT_MSEC:
|
||||
return sr_sw_limits_config_set(&devc->limits, key, data);
|
||||
case SR_CONF_DATA_SOURCE: {
|
||||
tmp_str = g_variant_get_string(data, NULL);
|
||||
|
|
|
@ -287,6 +287,7 @@ static int config_set(uint32_t key, GVariant *data,
|
|||
ret = SR_OK;
|
||||
switch (key) {
|
||||
case SR_CONF_LIMIT_SAMPLES:
|
||||
case SR_CONF_LIMIT_MSEC:
|
||||
return sr_sw_limits_config_set(&devc->limits, key, data);
|
||||
case SR_CONF_ENABLED:
|
||||
ret = reloadpro_set_on_off(sdi, g_variant_get_boolean(data));
|
||||
|
|
|
@ -176,6 +176,8 @@ static int config_get(uint32_t key, GVariant **data,
|
|||
devc = sdi->priv;
|
||||
|
||||
switch (key) {
|
||||
case SR_CONF_LIMIT_SAMPLES:
|
||||
case SR_CONF_LIMIT_MSEC:
|
||||
return sr_sw_limits_config_get(&devc->limits, key, data);
|
||||
case SR_CONF_VOLTAGE:
|
||||
*data = g_variant_new_double(devc->voltage);
|
||||
|
|
|
@ -241,6 +241,7 @@ static int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sd
|
|||
|
||||
switch (key) {
|
||||
case SR_CONF_LIMIT_MSEC:
|
||||
case SR_CONF_LIMIT_SAMPLES:
|
||||
return sr_sw_limits_config_set(&devc->limits, key, data);
|
||||
case SR_CONF_VOLTAGE_TARGET:
|
||||
dval = g_variant_get_double(data);
|
||||
|
|
Loading…
Reference in New Issue