From: Bert Vermeulen Date: Fri, 25 Jan 2013 15:21:04 +0000 (+0100) Subject: Use sr_dev_has_option(). X-Git-Tag: sigrok-cli-0.4.0~37 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b1bb484525c606019ef14692f814563c2acd58b3;p=sigrok-cli.git Use sr_dev_has_option(). --- diff --git a/sigrok-cli.c b/sigrok-cli.c index fcd6470..df8236e 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -1324,7 +1324,7 @@ static int set_limit_time(const struct sr_dev_inst *sdi) * convert to samples based on the samplerate. */ limit_samples = 0; - if (sr_dev_has_hwcap(sdi, SR_CONF_SAMPLERATE)) { + if (sr_dev_has_option(sdi, SR_CONF_SAMPLERATE)) { sr_config_get(sdi->driver, SR_CONF_SAMPLERATE, (const void **)&samplerate, sdi); limit_samples = (*samplerate) * time_msec / (uint64_t)1000;