]> sigrok.org Git - libsigrok.git/commitdiff
manson-hcs-3xxx: Mark serial read call as blocking.
authorMartin Ling <redacted>
Tue, 16 Sep 2014 00:49:53 +0000 (01:49 +0100)
committerUwe Hermann <redacted>
Wed, 24 Sep 2014 21:18:20 +0000 (23:18 +0200)
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

index f5199e73fe68d6b03f55cf82aaff5af3cbf5685b..a57c92d988149c7f04e729327d2c40431f72f387 100644 (file)
@@ -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;