From bbff0fe0d242542c1585cc9e94b9d4638632a049 Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Tue, 16 Sep 2014 01:49:53 +0100 Subject: [PATCH] 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. --- src/hardware/manson-hcs-3xxx/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;