tondaj-sl-814: Mark serial read call as nonblocking.

This call was already nonblocking since the driver opens the port with the
SERIAL_NONBLOCK flag. Partial reads are handled.
This commit is contained in:
Martin Ling 2014-09-21 19:19:51 +01:00 committed by Uwe Hermann
parent 9333691aaf
commit 47d98603e7
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ int tondaj_sl_814_receive_data(int fd, int revents, void *cb_data)
devc->state = GET_PACKET;
} else if (devc->state == GET_PACKET) {
/* Read a packet from the device. */
ret = serial_read(serial, devc->buf + devc->buflen,
ret = serial_read_nonblocking(serial, devc->buf + devc->buflen,
4 - devc->buflen);
if (ret < 0) {
sr_err("Error reading packet: %d.", ret);