From: Martin Ling Date: Tue, 16 Sep 2014 00:49:53 +0000 (+0100) Subject: manson-hcs-3xxx: Mark serial read call as blocking. X-Git-Tag: libsigrok-0.4.0~984 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=bbff0fe0d242542c1585cc9e94b9d4638632a049 manson-hcs-3xxx: Mark serial read call as blocking. This driver opens the port without the SERIAL_NONBLOCK flag, so this call is already a blocking one. --- diff --git a/src/hardware/manson-hcs-3xxx/protocol.c b/src/hardware/manson-hcs-3xxx/protocol.c index f5199e73..a57c92d9 100644 --- a/src/hardware/manson-hcs-3xxx/protocol.c +++ b/src/hardware/manson-hcs-3xxx/protocol.c @@ -177,7 +177,7 @@ static int handle_new_data(struct sr_dev_inst *sdi) devc = sdi->priv; serial = sdi->conn; - len = serial_read(serial, devc->buf + devc->buflen, 1); + len = serial_read_blocking(serial, devc->buf + devc->buflen, 1); if (len < 1) return SR_ERR;