sr: always turn off ICRNL on serial ports
It does rather screw with protocols that use CR.
This commit is contained in:
parent
d3f8f1415c
commit
fb9d3bf9cc
|
@ -317,6 +317,7 @@ SR_PRIV int serial_set_params(int fd, int baudrate, int bits, int parity,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Some default parameters */
|
/* Some default parameters */
|
||||||
|
term.c_iflag &= ~(ICRNL);
|
||||||
term.c_lflag &= ~(ICANON | ECHO);
|
term.c_lflag &= ~(ICANON | ECHO);
|
||||||
|
|
||||||
if (tcsetattr(fd, TCSADRAIN, &term) < 0)
|
if (tcsetattr(fd, TCSADRAIN, &term) < 0)
|
||||||
|
|
Loading…
Reference in New Issue