From: v1ne Date: Tue, 23 Feb 2021 21:36:32 +0000 (+0100) Subject: ols: Provide sample count in RLE mode X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=fe4acad1c2e39040c787b6245284b29c8b1b1c20;p=libsigrok.git ols: Provide sample count in RLE mode 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. --- diff --git a/src/hardware/openbench-logic-sniffer/api.c b/src/hardware/openbench-logic-sniffer/api.c index c6a2cd2f..426d253a 100644 --- a/src/hardware/openbench-logic-sniffer/api.c +++ b/src/hardware/openbench-logic-sniffer/api.c @@ -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;