]> sigrok.org Git - libsigrok.git/commitdiff
ols: allow for disabling of RLE as well
authorBert Vermeulen <redacted>
Mon, 25 Mar 2013 19:40:40 +0000 (20:40 +0100)
committerBert Vermeulen <redacted>
Thu, 11 Apr 2013 16:32:06 +0000 (18:32 +0200)
hardware/openbench-logic-sniffer/api.c

index 711938b8c6ece80f0b833e4d25686a0bfedcc25f..4e1a40cdc031869b485002c3d6747f89cfa7cf4e 100644 (file)
@@ -295,6 +295,9 @@ static int config_set(int id, GVariant *data, const struct sr_dev_inst *sdi)
                if (g_variant_get_boolean(data)) {
                        sr_info("Enabling RLE.");
                        devc->flag_reg |= FLAG_RLE;
+               } else {
+                       sr_info("Disabling RLE.");
+                       devc->flag_reg &= ~FLAG_RLE;
                }
                ret = SR_OK;
                break;