This driver opens the port with the SERIAL_NONBLOCK flag so these calls were
already non-blocking.
sr_spew("Requesting DMM packet.");
- return (serial_write(serial, &wbuf, 1) == 1) ? SR_OK : SR_ERR;
+ return (serial_write_nonblocking(serial, &wbuf, 1) == 1) ? SR_OK : SR_ERR;
}
#endif
/* Try to get as much data as the buffer can hold. */
len = DMM_BUFSIZE - devc->buflen;
- len = serial_read(serial, devc->buf + devc->buflen, len);
+ len = serial_read_nonblocking(serial, devc->buf + devc->buflen, len);
if (len == 0)
return; /* No new bytes, nothing to do. */
if (len < 0) {