X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fmotech-lps-30x%2Fapi.c;h=79a32aa4336ada0c9efb9080ad936b151ae756b4;hp=f0a0fd876a3b9ea6f471dcec8f9590d952b1e84c;hb=aed4ad0beaf64062752039a13f9a95326aa1df87;hpb=f2209364737835ba78126cf7f2a707f63182f0e6 diff --git a/src/hardware/motech-lps-30x/api.c b/src/hardware/motech-lps-30x/api.c index f0a0fd87..79a32aa4 100644 --- a/src/hardware/motech-lps-30x/api.c +++ b/src/hardware/motech-lps-30x/api.c @@ -444,7 +444,7 @@ static GSList *do_scan(lps_modelid modelid, struct sr_dev_driver *drv, GSList *o Therefore just print an error message, but do not exit with error. */ sr_err("Failed to query for hardware version: %d %s", errno, strerror(errno)); - sdi = sr_dev_inst_new(0, SR_ST_INACTIVE, VENDOR_MOTECH, models[modelid].modelstr, verstr); + sdi = sr_dev_inst_new(SR_ST_INACTIVE, VENDOR_MOTECH, models[modelid].modelstr, verstr); sdi->driver = drv; sdi->inst_type = SR_INST_SERIAL; sdi->conn = serial;