X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Ftekpower-dmm%2Fapi.c;h=dd53f4dd3d64b017fc4ac823f66c1799521ea0eb;hb=39e5d79826cd2c1991007faf1a6cde05af995aa9;hp=97c705a0c8088481905afdd9fea659f570feaaf5;hpb=766456be1c144b0985807279ffd697a395083cae;p=libsigrok.git diff --git a/hardware/tekpower-dmm/api.c b/hardware/tekpower-dmm/api.c index 97c705a0..dd53f4dd 100644 --- a/hardware/tekpower-dmm/api.c +++ b/hardware/tekpower-dmm/api.c @@ -106,7 +106,7 @@ static GSList *lcd14_scan(const char *conn, const char *serialcomm) if (!(serial = sr_serial_dev_inst_new(conn, serialcomm))) return NULL; - if (serial_open(serial, O_RDONLY | O_NONBLOCK) != SR_OK) + if (serial_open(serial, SERIAL_RDONLY | SERIAL_NONBLOCK) != SR_OK) return NULL; sr_info("Probing port %s readonly.", conn); @@ -217,7 +217,7 @@ static int hw_dev_open(struct sr_dev_inst *sdi) return SR_ERR_BUG; } - if (serial_open(devc->serial, O_RDONLY) != SR_OK) + if (serial_open(devc->serial, SERIAL_RDONLY) != SR_OK) return SR_ERR; sdi->status = SR_ST_ACTIVE;