Use sr_config_get().
authorBert Vermeulen <bert@biot.com>
Fri, 25 Jan 2013 14:49:21 +0000 (15:49 +0100)
committerBert Vermeulen <bert@biot.com>
Fri, 25 Jan 2013 14:49:21 +0000 (15:49 +0100)
sigrok-cli.c

index 74e9dfcbe001322bca51f77203a0bb4bce5dd456..fcd64701bacfacf3402e2ffab87a46859337c0fc 100644 (file)
@@ -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_CONF_SAMPLERATE,
+                       if (sr_config_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_CONF_SAMPLERATE,
+                       sr_config_get(sdi->driver, SR_CONF_SAMPLERATE,
                                        (const void **)&samplerate, sdi);
                        limit_samples = (*samplerate) * time_msec / (uint64_t)1000;
                }