From: Matthias Heidbrink Date: Thu, 17 Oct 2013 08:57:14 +0000 (+0200) Subject: serial: Removed flag OPOST (turn off all output processing). X-Git-Tag: libsigrok-0.2.2~27 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=50a9aba21b912b44559290ece466b46aaa8840cf;p=libsigrok.git serial: Removed flag OPOST (turn off all output processing). --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index d8a912b2..ebc69797 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -590,7 +590,7 @@ SR_PRIV int serial_set_params(struct sr_serial_dev_inst *serial, int baudrate, /* Turn off all serial port cooking. */ term.c_iflag &= ~(ISTRIP | INLCR | ICRNL); - term.c_oflag &= ~(ONLCR | OCRNL | ONOCR); + term.c_oflag &= ~(OPOST | ONLCR | OCRNL | ONOCR); #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) term.c_oflag &= ~OFILL; #endif