X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fbrymen-dmm%2Fapi.c;h=210d7e617f21e6f16ce36c05417dae3e66696a4a;hp=0a10956b989a90b99a1f659d59c3c70bdb772f5e;hb=0af636bed97c174bea46e61e961eaa1b0b162e0f;hpb=c7e455625807d31fcaf95f36a23f1afeba033e1f diff --git a/src/hardware/brymen-dmm/api.c b/src/hardware/brymen-dmm/api.c index 0a10956b..210d7e61 100644 --- a/src/hardware/brymen-dmm/api.c +++ b/src/hardware/brymen-dmm/api.c @@ -75,8 +75,10 @@ static GSList *brymen_scan(const char *conn, const char *serialcomm) sr_info("Found device on port %s.", conn); - if (!(sdi = sr_dev_inst_new(SR_ST_INACTIVE, "Brymen", "BM85x", NULL))) - goto scan_cleanup; + sdi = sr_dev_inst_new(); + sdi->status = SR_ST_INACTIVE; + sdi->vendor = g_strdup("Brymen"); + sdi->model = g_strdup("BM85x"); if (!(devc = g_try_malloc0(sizeof(struct dev_context)))) { sr_err("Device context malloc failed.");