From: Valentin Ochs Date: Sat, 27 Jun 2020 20:44:21 +0000 (+0200) Subject: hameg-hmo: Allow retrieving frame limit X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=98c7ef378c707bfda3d6e7850700953e4286f9af;p=libsigrok.git hameg-hmo: Allow retrieving frame limit --- diff --git a/src/hardware/hameg-hmo/api.c b/src/hardware/hameg-hmo/api.c index bbbaaaa7..1c58f74b 100644 --- a/src/hardware/hameg-hmo/api.c +++ b/src/hardware/hameg-hmo/api.c @@ -259,6 +259,9 @@ static int config_get(uint32_t key, GVariant **data, } *data = g_variant_new_double(state->digital_pods[idx].user_threshold); break; + case SR_CONF_LIMIT_FRAMES: + *data = g_variant_new_uint64(devc->frame_limit); + break; default: return SR_ERR_NA; } diff --git a/src/hardware/hameg-hmo/protocol.c b/src/hardware/hameg-hmo/protocol.c index 5986949b..3e15d376 100644 --- a/src/hardware/hameg-hmo/protocol.c +++ b/src/hardware/hameg-hmo/protocol.c @@ -117,7 +117,7 @@ static const char *rohde_schwarz_log_not_pod_scpi_dialect[] = { static const uint32_t devopts[] = { SR_CONF_OSCILLOSCOPE, SR_CONF_LIMIT_SAMPLES | SR_CONF_SET, - SR_CONF_LIMIT_FRAMES | SR_CONF_SET, + SR_CONF_LIMIT_FRAMES | SR_CONF_GET | SR_CONF_SET, SR_CONF_SAMPLERATE | SR_CONF_GET, SR_CONF_TIMEBASE | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST, SR_CONF_NUM_HDIV | SR_CONF_GET,