From: Bert Vermeulen Date: Wed, 23 Jan 2013 01:32:58 +0000 (+0100) Subject: serial: more serial processing flags to turn off X-Git-Tag: dsupstream~324 X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;h=b1a051544d502f15a1da05682e625755563b86c2;p=libsigrok.git serial: more serial processing flags to turn off --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index 4ac342f0..e32c0f1e 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -589,8 +589,9 @@ SR_PRIV int serial_set_params(struct sr_serial_dev_inst *serial, int baudrate, return SR_ERR; } - /* Do not translate carriage return to newline on input. */ - term.c_iflag &= ~(ICRNL); + /* Turn off all serial port cooking. */ + term.c_iflag &= ~(ISTRIP | INLCR | ICRNL); + term.c_oflag &= ~(ONLCR | OCRNL | ONOCR | OFILL ); /* Disable canonical mode, and don't echo input characters. */ term.c_lflag &= ~(ICANON | ECHO);