From: Bert Vermeulen Date: Sat, 22 Sep 2012 21:50:51 +0000 (+0200) Subject: sr: always turn off ICRNL on serial ports X-Git-Tag: dsupstream~684 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=fb9d3bf9cc0cafbd3caedcd54831219a533ef7fb;p=libsigrok.git sr: always turn off ICRNL on serial ports It does rather screw with protocols that use CR. --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index 0be403af..ad88958a 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -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)