gwinstek-gpd: Add missing SW limits API calls.
This commit is contained in:
parent
d579755a66
commit
b81cfbc349
|
@ -248,6 +248,9 @@ static int config_get(uint32_t key, GVariant **data,
|
|||
|
||||
if (!cg) {
|
||||
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_CHANNEL_CONFIG:
|
||||
*data = g_variant_new_string(
|
||||
channel_modes[devc->channel_mode]);
|
||||
|
|
|
@ -175,6 +175,7 @@ SR_PRIV int gpd_receive_data(int fd, int revents, void *cb_data)
|
|||
}
|
||||
|
||||
devc->reply_pending = FALSE;
|
||||
sr_sw_limits_update_samples_read(&devc->limits, 1);
|
||||
}
|
||||
} else {
|
||||
if (!devc->reply_pending) {
|
||||
|
|
Loading…
Reference in New Issue