From: Martin Ling Date: Mon, 25 Nov 2013 18:21:49 +0000 (+0000) Subject: Apply termios setting changes immediately. X-Git-Tag: libserialport-0.1.0~45 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3f5c06d06712465cf76f1fe5b21aae5ea39e23f7;p=libserialport.git Apply termios setting changes immediately. --- diff --git a/serialport.c b/serialport.c index 05fb85c..4e371a7 100644 --- a/serialport.c +++ b/serialport.c @@ -1549,7 +1549,7 @@ static enum sp_return set_config(struct sp_port *port, struct port_data *data, } } - if (tcsetattr(port->fd, TCSADRAIN, &data->term) < 0) + if (tcsetattr(port->fd, TCSANOW, &data->term) < 0) RETURN_FAIL("tcsetattr() failed"); #ifdef __APPLE__