]> sigrok.org Git - libsigrok.git/commitdiff
hameg-hmo: Allow retrieving frame limit
authorValentin Ochs <redacted>
Sat, 27 Jun 2020 20:44:21 +0000 (22:44 +0200)
committerValentin Ochs <redacted>
Sat, 27 Jun 2020 20:56:39 +0000 (22:56 +0200)
src/hardware/hameg-hmo/api.c
src/hardware/hameg-hmo/protocol.c

index bbbaaaa716f11234ae8f3fa901e705902c70290f..1c58f74b70778f7b4bbaad6b78cfbba0d92f2ba2 100644 (file)
@@ -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;
        }
index 5986949bc4fcbab62205bca46e9f53a1d281f8ce..3e15d3760543a7ab3da9332a356c5dd8eae7812d 100644 (file)
@@ -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,