]> sigrok.org Git - libsigrok.git/commitdiff
ols: Provide sample count in RLE mode
authorv1ne <redacted>
Tue, 23 Feb 2021 21:36:32 +0000 (22:36 +0100)
committerSoeren Apel <redacted>
Fri, 10 Sep 2021 21:00:51 +0000 (23:00 +0200)
It just means "number of compressed samples", but it's still highly useful
to decice how much data to capture. If this is unavailable, PulseView
provides a weird list of up to 1 TSmpl, which makes even less sense.

src/hardware/openbench-logic-sniffer/api.c

index c6a2cd2f4da24e83a687dedecdabb5d824fa8854..426d253a716385c36b3a539d0e0d30897cd0d2e2 100644 (file)
@@ -367,8 +367,6 @@ static int config_list(uint32_t key, GVariant **data,
                if (!sdi)
                        return SR_ERR_ARG;
                devc = sdi->priv;
-               if (devc->capture_flags & CAPTURE_FLAG_RLE)
-                       return SR_ERR_NA;
                if (devc->max_samples == 0)
                        /* Device didn't specify sample memory size in metadata. */
                        return SR_ERR_NA;