]> sigrok.org Git - sigrok-cli.git/commitdiff
Use sr_dev_has_option().
authorBert Vermeulen <redacted>
Fri, 25 Jan 2013 15:21:04 +0000 (16:21 +0100)
committerBert Vermeulen <redacted>
Fri, 25 Jan 2013 15:21:04 +0000 (16:21 +0100)
sigrok-cli.c

index fcd64701bacfacf3402e2ffab87a46859337c0fc..df8236e9d1bd9a3c498cf4e4572dc5e9796504e4 100644 (file)
@@ -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;