X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=sigrok-cli.c;h=6512ff7f77158f3dc7072b1010a014748ab34769;hp=df8236e9d1bd9a3c498cf4e4572dc5e9796504e4;hb=e4ffb9d69985320cd0a13f5643a13a181527734d;hpb=b1bb484525c606019ef14692f814563c2acd58b3 diff --git a/sigrok-cli.c b/sigrok-cli.c index df8236e..6512ff7 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -1312,7 +1312,7 @@ static int set_limit_time(const struct sr_dev_inst *sdi) return SR_ERR; } - if (sr_driver_hwcap_exists(sdi->driver, SR_CONF_LIMIT_MSEC)) { + if (sr_dev_has_option(sdi, SR_CONF_LIMIT_MSEC)) { if (sr_config_set(sdi, SR_CONF_LIMIT_MSEC, &time_msec) != SR_OK) { g_critical("Failed to configure time limit."); sr_session_destroy(); @@ -1404,7 +1404,7 @@ static void run_session(void) } if (opt_continuous) { - if (!sr_driver_hwcap_exists(sdi->driver, SR_CONF_CONTINUOUS)) { + if (!sr_dev_has_option(sdi, SR_CONF_CONTINUOUS)) { g_critical("This device does not support continuous sampling."); sr_session_destroy(); return;