Make sure flow control is disabled when not explicitly required
This commit is contained in:
parent
81ac501def
commit
2e6ef2b6f2
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user