From: Bert Vermeulen Date: Fri, 25 Jan 2013 02:18:27 +0000 (+0100) Subject: Deprecate SR_DI_CUR_SAMPLERATE. X-Git-Tag: sigrok-cli-0.4.0~50 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f082186b9b295b21f5ca07132999d8657f6ab2c6;p=sigrok-cli.git Deprecate SR_DI_CUR_SAMPLERATE. --- diff --git a/sigrok-cli.c b/sigrok-cli.c index a67970d..e95ec9e 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -629,7 +629,7 @@ static void datafeed_in(const struct sr_dev_inst *sdi, unitsize = (logic_probelist->len + 7) / 8; if (opt_pds && logic_probelist->len) { - if (sr_info_get(sdi->driver, SR_DI_CUR_SAMPLERATE, + if (sr_info_get(sdi->driver, SR_CONF_SAMPLERATE, (const void **)&samplerate, sdi) != SR_OK) { g_critical("Unable to initialize protocol " "decoders: no samplerate found."); @@ -1325,7 +1325,7 @@ static int set_limit_time(const struct sr_dev_inst *sdi) */ limit_samples = 0; if (sr_dev_has_hwcap(sdi, SR_CONF_SAMPLERATE)) { - sr_info_get(sdi->driver, SR_DI_CUR_SAMPLERATE, + sr_info_get(sdi->driver, SR_CONF_SAMPLERATE, (const void **)&samplerate, sdi); limit_samples = (*samplerate) * time_msec / (uint64_t)1000; }