diff options
author | damcclos <damcclos@Davids-MacBook-Pro.local> | 2015-10-25 18:11:16 -0700 |
---|---|---|
committer | Brendan Le Foll <brendan.le.foll@intel.com> | 2015-10-26 16:00:18 +0000 |
commit | c89b04eb1931dfabc2cf4bf42034fd015fce76ab (patch) | |
tree | 4f2acec7e9957ca3eda75b400ca7571bd0960009 | |
parent | 6aaf48940e8480511bb853f9611b8d307b3661fb (diff) |
uart.c: fix to UART even parity
Signed-off-by: David McCloskey <davmcclo@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
-rw-r--r-- | src/uart/uart.c | 2 |
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; |