]> sigrok.org Git - libserialport.git/commitdiff
Apply termios setting changes immediately.
authorMartin Ling <redacted>
Mon, 25 Nov 2013 18:21:49 +0000 (18:21 +0000)
committerMartin Ling <redacted>
Mon, 25 Nov 2013 18:21:49 +0000 (18:21 +0000)
serialport.c

index 05fb85cd06d28ebf494fe957eb8229ee94863761..4e371a768424be0f649a0ab85f692251a75a0ae1 100644 (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__