]> sigrok.org Git - libsigrok.git/commitdiff
serial: Removed flag OPOST (turn off all output processing).
authorMatthias Heidbrink <redacted>
Thu, 17 Oct 2013 08:57:14 +0000 (10:57 +0200)
committerUwe Hermann <redacted>
Fri, 25 Oct 2013 17:11:15 +0000 (19:11 +0200)
hardware/common/serial.c

index d8a912b28b08f27847badb48c164c4f04a78fbb2..ebc6979763100a2399a5d9678ed666c16caa81db 100644 (file)
@@ -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