X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Funi-t-dmm%2Fapi.c;h=f09710e6fbb7d1b5463245a4e5e14e75c2da9bff;hb=aed4ad0beaf64062752039a13f9a95326aa1df87;hp=56d116cef8057dbb91a37ecc2e4f9668e7e357e7;hpb=a0e0bb4149081eda06714f1158639f2dadcfa9d8;p=libsigrok.git diff --git a/src/hardware/uni-t-dmm/api.c b/src/hardware/uni-t-dmm/api.c index 56d116ce..f09710e6 100644 --- a/src/hardware/uni-t-dmm/api.c +++ b/src/hardware/uni-t-dmm/api.c @@ -32,9 +32,9 @@ static const uint32_t scanopts[] = { static const uint32_t devopts[] = { SR_CONF_MULTIMETER, - SR_CONF_LIMIT_SAMPLES, - SR_CONF_LIMIT_MSEC, SR_CONF_CONTINUOUS, + SR_CONF_LIMIT_SAMPLES | SR_CONF_SET, + SR_CONF_LIMIT_MSEC | SR_CONF_SET, }; SR_PRIV struct sr_dev_driver tecpel_dmm_8061_driver_info; @@ -212,7 +212,7 @@ static GSList *scan(GSList *options, int dmm) devc->first_run = TRUE; - if (!(sdi = sr_dev_inst_new(0, SR_ST_INACTIVE, + if (!(sdi = sr_dev_inst_new(SR_ST_INACTIVE, udmms[dmm].vendor, udmms[dmm].device, NULL))) { sr_err("sr_dev_inst_new returned NULL."); return NULL;