X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fcem-dt-885x%2Fapi.c;h=70a28e58153de63ed5f4833edb5299ae065f2ebe;hp=25e1ce45b3921ba07559351e7eab0832b85a8f7e;hb=aed4ad0beaf64062752039a13f9a95326aa1df87;hpb=f2209364737835ba78126cf7f2a707f63182f0e6 diff --git a/src/hardware/cem-dt-885x/api.c b/src/hardware/cem-dt-885x/api.c index 25e1ce45..70a28e58 100644 --- a/src/hardware/cem-dt-885x/api.c +++ b/src/hardware/cem-dt-885x/api.c @@ -106,7 +106,7 @@ static GSList *scan(GSList *options) while (g_get_monotonic_time() - start < MAX_SCAN_TIME) { if (serial_read_nonblocking(serial, &c, 1) == 1 && c == 0xa5) { /* Found one. */ - if (!(sdi = sr_dev_inst_new(0, SR_ST_INACTIVE, "CEM", + if (!(sdi = sr_dev_inst_new(SR_ST_INACTIVE, "CEM", "DT-885x", NULL))) return NULL;