disable flow control
This commit is contained in:
@@ -53,6 +53,9 @@ LightsDriver_LinuxSerial::LightsDriver_LinuxSerial()
|
||||
|
||||
my_termios.c_cflag = B2400 | CS8 |CREAD | CLOCAL | HUPCL;
|
||||
|
||||
my_termios.c_iflag &= ~(IXON | IXOFF | IXANY); /* no flow control */
|
||||
my_termios.c_oflag &= ~(IXON | IXOFF | IXANY); /* no flow control */
|
||||
|
||||
cfsetospeed(&my_termios, B2400);
|
||||
tcsetattr(fd, TCSANOW, &my_termios);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user