X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fdemo%2Fdemo.c;h=3e3150afc6663156f0aaac25aeeb0f7505bbb269;hb=014359e3293ef0cdc61fbde4f63dc0a9da98179d;hp=02d89c724539fbc7ede3b418b6a3efc4e5effa3d;hpb=a56f1480949e84e94dad2afcdf9f758988a4aff9;p=libsigrok.git diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index 02d89c72..3e3150af 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -258,10 +258,7 @@ static int hw_dev_config_set(const struct sr_dev_inst *sdi, int hwcap, (void)sdi; - if (hwcap == SR_HWCAP_PROBECONFIG) { - /* Nothing to do, but must be supported */ - ret = SR_OK; - } else if (hwcap == SR_HWCAP_SAMPLERATE) { + if (hwcap == SR_HWCAP_SAMPLERATE) { cur_samplerate = *(const uint64_t *)value; sr_dbg("demo: %s: setting samplerate to %" PRIu64, __func__, cur_samplerate);