]> sigrok.org Git - libsigrok.git/blobdiff - output/csv.c
Deprecate SR_DI_CUR_SAMPLERATE.
[libsigrok.git] / output / csv.c
index c86fd7c919e7151635279b3711b2ad5a4a0bab79..10798a7362ce70ce1a2436f00ec9b4c2d548a187 100644 (file)
@@ -99,8 +99,8 @@ static int init(struct sr_output *o)
 
        num_probes = g_slist_length(o->sdi->probes);
 
-       if (sr_dev_has_hwcap(o->sdi, SR_HWCAP_SAMPLERATE)) {
-               o->sdi->driver->info_get(SR_DI_CUR_SAMPLERATE,
+       if (sr_dev_has_hwcap(o->sdi, SR_CONF_SAMPLERATE)) {
+               o->sdi->driver->config_get(SR_CONF_SAMPLERATE,
                                (const void **)&samplerate, o->sdi);
                ctx->samplerate = *samplerate;
        } else