X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Ftondaj-sl-814%2Fapi.c;h=4578c21f1c4a7f68ac495deadcf65dbcaffc2c70;hb=6fad08e6abfa4e5ee708f584e530c6b611a65cdb;hp=5a294abc4ba7e72e0835b4e09acd0e8f9cb901a8;hpb=5827f61b641cfd326a9cf2ea534eb4f9481a8187;p=libsigrok.git diff --git a/src/hardware/tondaj-sl-814/api.c b/src/hardware/tondaj-sl-814/api.c index 5a294abc..4578c21f 100644 --- a/src/hardware/tondaj-sl-814/api.c +++ b/src/hardware/tondaj-sl-814/api.c @@ -84,7 +84,7 @@ static GSList *scan(GSList *options) if (!serialcomm) serialcomm = SERIALCOMM; - if (!(sdi = sr_dev_inst_new(0, SR_ST_INACTIVE, "Tondaj", + if (!(sdi = sr_dev_inst_new(SR_ST_INACTIVE, "Tondaj", "SL-814", NULL))) { sr_err("Failed to create device instance."); return NULL; @@ -98,7 +98,7 @@ static GSList *scan(GSList *options) if (!(serial = sr_serial_dev_inst_new(conn, serialcomm))) return NULL; - if (serial_open(serial, SERIAL_RDWR | SERIAL_NONBLOCK) != SR_OK) + if (serial_open(serial, SERIAL_RDWR) != SR_OK) return NULL; sdi->inst_type = SR_INST_SERIAL;