X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Fgnuplot.c;h=965138984a594c7981a4fa8eb2cae660b6eda5cd;hb=cbc6f3b25331bc4acca1eff9a5e60786e2efd2f8;hp=13c7adb7cf50e29285c3a49f509fcf02d619c73e;hpb=035a1078fda93cf1da37d19b3a1d95311b99b00f;p=libsigrok.git diff --git a/output/gnuplot.c b/output/gnuplot.c index 13c7adb7..96513898 100644 --- a/output/gnuplot.c +++ b/output/gnuplot.c @@ -109,8 +109,8 @@ 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)) { - o->sdi->driver->config_get(SR_DI_CUR_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))) { sr_err("%s: sr_samplerate_string failed", __func__);