gwinstek-gpd: Add missing SW limits API calls.

This commit is contained in:
Timo Kokkonen 2020-07-13 21:54:25 -07:00 committed by Gerhard Sittig
parent d579755a66
commit b81cfbc349
2 changed files with 4 additions and 0 deletions

View File

@ -248,6 +248,9 @@ static int config_get(uint32_t key, GVariant **data,
if (!cg) { if (!cg) {
switch (key) { 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: case SR_CONF_CHANNEL_CONFIG:
*data = g_variant_new_string( *data = g_variant_new_string(
channel_modes[devc->channel_mode]); channel_modes[devc->channel_mode]);

View File

@ -175,6 +175,7 @@ SR_PRIV int gpd_receive_data(int fd, int revents, void *cb_data)
} }
devc->reply_pending = FALSE; devc->reply_pending = FALSE;
sr_sw_limits_update_samples_read(&devc->limits, 1);
} }
} else { } else {
if (!devc->reply_pending) { if (!devc->reply_pending) {