X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fatten-pps3xxx%2Fapi.c;h=2a3ac8f5701210a345a3907fc9367c3d1699c4c5;hp=f29377e34617da5cfb22cdce0fc190e4ea959aa6;hb=0af636bed97c174bea46e61e961eaa1b0b162e0f;hpb=c7e455625807d31fcaf95f36a23f1afeba033e1f diff --git a/src/hardware/atten-pps3xxx/api.c b/src/hardware/atten-pps3xxx/api.c index f29377e3..2a3ac8f5 100644 --- a/src/hardware/atten-pps3xxx/api.c +++ b/src/hardware/atten-pps3xxx/api.c @@ -164,7 +164,10 @@ static GSList *scan(GSList *options, int modelid) return NULL; } - sdi = sr_dev_inst_new(SR_ST_INACTIVE, "Atten", model->name, NULL); + sdi = sr_dev_inst_new(); + sdi->status = SR_ST_INACTIVE; + sdi->vendor = g_strdup("Atten"); + sdi->model = g_strdup(model->name); sdi->driver = di; sdi->inst_type = SR_INST_SERIAL; sdi->conn = serial;