From: Bert Vermeulen Date: Sun, 16 Sep 2012 12:07:21 +0000 (+0200) Subject: sr: turn off canonical mode and echo ion serial ports by default X-Git-Tag: dsupstream~689 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5c51e09868ea24c0eb77908aa3a9d585a46a3158;p=libsigrok.git sr: turn off canonical mode and echo ion serial ports by default --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index 51934ed8..0be403af 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -316,6 +316,9 @@ SR_PRIV int serial_set_params(int fd, int baudrate, int bits, int parity, return SR_ERR; } + /* Some default parameters */ + term.c_lflag &= ~(ICANON | ECHO); + if (tcsetattr(fd, TCSADRAIN, &term) < 0) return SR_ERR; #endif