]> sigrok.org Git - libsigrok.git/blobdiff - hardware/openbench-logic-sniffer/ols.c
Changed SR_T_NULL to SR_T_BOOL and adjusted RLE option.
[libsigrok.git] / hardware / openbench-logic-sniffer / ols.c
index 35db8402f7b64a99eebb24304c9ede8fe1f3437a..57881f838c9a061b6a0da4615c2737069c929092 100644 (file)
@@ -618,7 +618,7 @@ static int hw_set_configuration(int device_index, int capability, void *value)
                        ret = SR_OK;
                break;
        case SR_HWCAP_RLE:
-               if (!strcmp(value, "on")) {
+               if (GPOINTER_TO_INT(value)) {
                        sr_info("ols: enabling RLE");
                        ols->flag_reg |= FLAG_RLE;
                }