X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Funi-t-dmm%2Fapi.c;h=f09710e6fbb7d1b5463245a4e5e14e75c2da9bff;hb=aed4ad0beaf64062752039a13f9a95326aa1df87;hp=440a7ec1962b45e4bfebf881be11d0fa673fe9b1;hpb=f2209364737835ba78126cf7f2a707f63182f0e6;p=libsigrok.git diff --git a/src/hardware/uni-t-dmm/api.c b/src/hardware/uni-t-dmm/api.c index 440a7ec1..f09710e6 100644 --- a/src/hardware/uni-t-dmm/api.c +++ b/src/hardware/uni-t-dmm/api.c @@ -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;