Make sure flow control is disabled when not explicitly required

This commit is contained in:
Pierre Pronchery 2010-05-07 12:59:54 +00:00
parent 81ac501def
commit 2e6ef2b6f2

View File

@ -1941,6 +1941,8 @@ static int _reset_do(int fd, unsigned int baudrate, unsigned int hwflow)
term.c_cflag |= CLOCAL; term.c_cflag |= CLOCAL;
if(hwflow) if(hwflow)
term.c_cflag |= CRTSCTS; term.c_cflag |= CRTSCTS;
else
term.c_cflag &= ~CRTSCTS;
term.c_iflag = (IGNPAR | IGNBRK); term.c_iflag = (IGNPAR | IGNBRK);
term.c_lflag = 0; term.c_lflag = 0;
term.c_oflag = 0; term.c_oflag = 0;