agilent-dmm: Mark serial read call as nonblocking.

This driver opens the port with the SERIAL_NONBLOCK flag, so this call is
already a nonblocking one, and is handled appropriately.
This commit is contained in:
Martin Ling 2014-09-16 02:07:08 +01:00 committed by Uwe Hermann
parent 2e360339f9
commit e0b781a45b
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ SR_PRIV int agdmm_receive_data(int fd, int revents, void *cb_data)
if (revents == G_IO_IN) { if (revents == G_IO_IN) {
/* Serial data arrived. */ /* Serial data arrived. */
while(AGDMM_BUFSIZE - devc->buflen - 1 > 0) { while(AGDMM_BUFSIZE - devc->buflen - 1 > 0) {
len = serial_read(serial, devc->buf + devc->buflen, 1); len = serial_read_nonblocking(serial, devc->buf + devc->buflen, 1);
if (len < 1) if (len < 1)
break; break;
devc->buflen += len; devc->buflen += len;