sr: always turn off ICRNL on serial ports

It does rather screw with protocols that use CR.
This commit is contained in:
Bert Vermeulen 2012-09-22 23:50:51 +02:00
parent d3f8f1415c
commit fb9d3bf9cc
1 changed files with 1 additions and 0 deletions

View File

@ -317,6 +317,7 @@ SR_PRIV int serial_set_params(int fd, int baudrate, int bits, int parity,
}
/* Some default parameters */
term.c_iflag &= ~(ICRNL);
term.c_lflag &= ~(ICANON | ECHO);
if (tcsetattr(fd, TCSADRAIN, &term) < 0)