X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Ftondaj-sl-814%2Fapi.c;h=16099940e21dcf7a607c3596e8f011038dcbaf0c;hb=1953564a96798bc298d1c94eb90c129adbde1c9e;hp=b27625b57e6d06856f8d44ddc2a548990d869807;hpb=c89c1c9c211a197f24de7bfd32ecbc873dd66818;p=libsigrok.git diff --git a/hardware/tondaj-sl-814/api.c b/hardware/tondaj-sl-814/api.c index b27625b5..16099940 100644 --- a/hardware/tondaj-sl-814/api.c +++ b/hardware/tondaj-sl-814/api.c @@ -27,15 +27,15 @@ #define SERIALCOMM "9600/8e1" static const int hwopts[] = { - SR_HWOPT_CONN, - SR_HWOPT_SERIALCOMM, + SR_CONF_CONN, + SR_CONF_SERIALCOMM, 0, }; static const int hwcaps[] = { - SR_HWCAP_SOUNDLEVELMETER, - SR_HWCAP_LIMIT_SAMPLES, - SR_HWCAP_CONTINUOUS, + SR_CONF_SOUNDLEVELMETER, + SR_CONF_LIMIT_SAMPLES, + SR_CONF_CONTINUOUS, 0, }; @@ -104,10 +104,10 @@ static GSList *hw_scan(GSList *options) continue; } switch (src->key) { - case SR_HWOPT_CONN: + case SR_CONF_CONN: conn = src->value; break; - case SR_HWOPT_SERIALCOMM: + case SR_CONF_SERIALCOMM: serialcomm = src->value; break; default: @@ -227,7 +227,7 @@ static int hw_dev_config_set(const struct sr_dev_inst *sdi, int hwcap, devc = sdi->priv; switch (hwcap) { - case SR_HWCAP_LIMIT_SAMPLES: + case SR_CONF_LIMIT_SAMPLES: devc->limit_samples = *(const uint64_t *)value; sr_dbg("Setting sample limit to %" PRIu64 ".", devc->limit_samples);