]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/motech-lps-30x/protocol.c
motech-lps-30x: Mark serial read call as nonblocking.
[libsigrok.git] / src / hardware / motech-lps-30x / protocol.c
index c4afd657a730becdc1a26ede17917b35a193b9a5..78d822f0ba21fd8724511d860efebb05d7ce1262 100644 (file)
@@ -152,7 +152,7 @@ SR_PRIV int motech_lps_30x_receive_data(int fd, int revents, void *cb_data)
 
        if (revents == G_IO_IN) { /* Serial data arrived. */
                while (LINELEN_MAX - devc->buflen - 2 > 0) {
-                       len = serial_read(serial, devc->buf + devc->buflen, 1);
+                       len = serial_read_nonblocking(serial, devc->buf + devc->buflen, 1);
                        if (len < 1)
                                break;