X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fserial-dmm%2Fprotocol.c;h=e667ca4955cd84f04953a70ec90066ffaf24c058;hb=4277ac349ced6224e8093fea79b6988315fbb780;hp=c812793929aab89a4d31063cb9453ddea2eb20a9;hpb=02bd1d029858678add65cb436e2ba664673068a9;p=libsigrok.git diff --git a/src/hardware/serial-dmm/protocol.c b/src/hardware/serial-dmm/protocol.c index c8127939..e667ca49 100644 --- a/src/hardware/serial-dmm/protocol.c +++ b/src/hardware/serial-dmm/protocol.c @@ -110,7 +110,7 @@ static void handle_new_data(struct sr_dev_inst *sdi, int dmm, void *info) /* 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) {