aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/uart/uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uart/uart.c b/src/uart/uart.c
index 04a6e5e..4c56497 100644
--- a/src/uart/uart.c
+++ b/src/uart/uart.c
@@ -352,8 +352,8 @@ mraa_uart_set_mode(mraa_uart_context dev, int bytesize, mraa_uart_parity_t parit
termio.c_cflag &= ~(PARENB | PARODD);
break;
case MRAA_UART_PARITY_EVEN:
+ termio.c_cflag |= PARENB;
termio.c_cflag &= ~PARODD;
- termio.c_cflag |= PARODD;
break;
case MRAA_UART_PARITY_ODD:
termio.c_cflag |= PARENB | PARODD;