]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/fx2lafw/api.c
drivers: SR_CONF_CAPTURE_RATIO fixes.
[libsigrok.git] / src / hardware / fx2lafw / api.c
index c72daa7f0e9965e7deeee54f04806a806be0ba05..34c5bc412ebfec2b9dc582da3cefab98588d92f6 100644 (file)
@@ -508,7 +508,7 @@ static int config_set(uint32_t key, GVariant *data,
                break;
        case SR_CONF_CAPTURE_RATIO:
                devc->capture_ratio = g_variant_get_uint64(data);
-               return (devc->capture_ratio > 100) ? SR_ERR : SR_OK;
+               break;
        default:
                return SR_ERR_NA;
        }