From: Martin Ling Date: Tue, 16 Sep 2014 00:52:14 +0000 (+0100) Subject: colead-slm: Mark serial write call as blocking. X-Git-Tag: libsigrok-0.4.0~983 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=02bd1d029858678add65cb436e2ba664673068a9;p=libsigrok.git colead-slm: Mark serial write call as blocking. This driver opens the port without the SERIAL_NONBLOCK flag, so this call was already blocking. --- diff --git a/src/hardware/colead-slm/protocol.c b/src/hardware/colead-slm/protocol.c index ef58ab73..12a71546 100644 --- a/src/hardware/colead-slm/protocol.c +++ b/src/hardware/colead-slm/protocol.c @@ -207,7 +207,7 @@ SR_PRIV int colead_slm_receive_data(int fd, int revents, void *cb_data) * we don't want it. */ return TRUE; /* Got 0x10, "measurement ready". */ - if (serial_write(serial, "\x20", 1) == -1) + if (serial_write_blocking(serial, "\x20", 1) == -1) sr_err("unable to send command: %s", strerror(errno)); else { devc->state = COMMAND_SENT;