]> sigrok.org Git - libsigrok.git/blobdiff - output/csv.c
Rename sr_dev_has_hwcap() to sr_dev_has_option().
[libsigrok.git] / output / csv.c
index 10798a7362ce70ce1a2436f00ec9b4c2d548a187..e2901efbc8f5205fcff1a5ef2299e3ef47a6a991 100644 (file)
@@ -99,7 +99,7 @@ static int init(struct sr_output *o)
 
        num_probes = g_slist_length(o->sdi->probes);
 
-       if (sr_dev_has_hwcap(o->sdi, SR_CONF_SAMPLERATE)) {
+       if (sr_dev_has_option(o->sdi, SR_CONF_SAMPLERATE)) {
                o->sdi->driver->config_get(SR_CONF_SAMPLERATE,
                                (const void **)&samplerate, o->sdi);
                ctx->samplerate = *samplerate;