]> sigrok.org Git - libsigrok.git/commitdiff
serial: Changed order of flags PARENB and PARODD in deletion to same order as in...
authorMatthias Heidbrink <redacted>
Thu, 17 Oct 2013 08:57:15 +0000 (10:57 +0200)
committerUwe Hermann <redacted>
Fri, 18 Oct 2013 14:58:33 +0000 (16:58 +0200)
hardware/common/serial.c

index 557022c99733456151c40b267970401957817c4e..fb5d0b6a21c1065ddd3e835b9c7106936166a658 100644 (file)
@@ -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.");