From: Matthias Heidbrink Date: Thu, 17 Oct 2013 08:57:15 +0000 (+0200) Subject: serial: Changed order of flags PARENB and PARODD in deletion to same order as in... X-Git-Tag: libsigrok-0.2.2~39 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b21d7eebe24093269e78f84fb13e03f492abc502;p=libsigrok.git serial: Changed order of flags PARENB and PARODD in deletion to same order as in setting (cosmetic). --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index 557022c9..fb5d0b6a 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -569,7 +569,7 @@ SR_PRIV int serial_set_params(struct sr_serial_dev_inst *serial, int baudrate, } term.c_iflag &= ~IGNPAR; - term.c_cflag &= ~(PARODD | PARENB); + term.c_cflag &= ~(PARENB | PARODD); switch (parity) { case SERIAL_PARITY_NONE: sr_spew("Configuring no parity.");