]> sigrok.org Git - libsigrok.git/blobdiff - output/text/text.c
Deprecate SR_DI_CUR_SAMPLERATE.
[libsigrok.git] / output / text / text.c
index 7c442ad8ab886a11b7683fe389e6c2a3eeb596ac..8bbe3b51d3b2fed7e32bc701613e83adb89fefdf 100644 (file)
@@ -124,7 +124,7 @@ SR_PRIV int init(struct sr_output *o, int default_spl, enum outputmode mode)
        snprintf(ctx->header, 511, "%s\n", PACKAGE_STRING);
        num_probes = g_slist_length(o->sdi->probes);
        if (o->sdi->driver || sr_dev_has_hwcap(o->sdi, SR_CONF_SAMPLERATE)) {
-               ret = o->sdi->driver->config_get(SR_DI_CUR_SAMPLERATE,
+               ret = o->sdi->driver->config_get(SR_CONF_SAMPLERATE,
                                (const void **)&samplerate, o->sdi);
                if (ret != SR_OK)
                        goto err;