From: Timo Kokkonen Date: Tue, 14 Jul 2020 04:54:25 +0000 (-0700) Subject: gwinstek-gpd: Add missing SW limits API calls. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b81cfbc349a12e28f8212110699652b7e2d7aec4;p=libsigrok.git gwinstek-gpd: Add missing SW limits API calls. --- diff --git a/src/hardware/gwinstek-gpd/api.c b/src/hardware/gwinstek-gpd/api.c index 5de7e467..aff3a7a2 100644 --- a/src/hardware/gwinstek-gpd/api.c +++ b/src/hardware/gwinstek-gpd/api.c @@ -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]); diff --git a/src/hardware/gwinstek-gpd/protocol.c b/src/hardware/gwinstek-gpd/protocol.c index 19a664e5..e6999590 100644 --- a/src/hardware/gwinstek-gpd/protocol.c +++ b/src/hardware/gwinstek-gpd/protocol.c @@ -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) {