1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Apply termios setting changes immediately.

This commit is contained in:
Martin Ling 2013-11-25 18:21:49 +00:00
parent e432ce6006
commit 3f5c06d067

View File

@ -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__