From 3f5c06d06712465cf76f1fe5b21aae5ea39e23f7 Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Mon, 25 Nov 2013 18:21:49 +0000 Subject: [PATCH] Apply termios setting changes immediately. --- serialport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__