X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Fgnuplot.c;h=965138984a594c7981a4fa8eb2cae660b6eda5cd;hb=cbc6f3b25331bc4acca1eff9a5e60786e2efd2f8;hp=f70625a9fd42cdf47b6bd57f1013df0eb53ffce0;hpb=123e13138385055003cb6bc09e74df783df5af85;p=libsigrok.git diff --git a/output/gnuplot.c b/output/gnuplot.c index f70625a9..96513898 100644 --- a/output/gnuplot.c +++ b/output/gnuplot.c @@ -109,7 +109,7 @@ static int init(struct sr_output *o) num_probes = g_slist_length(o->sdi->probes); comment[0] = '\0'; - 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); if (!(frequency_s = sr_samplerate_string(*samplerate))) {