From b142f3fddad2376c17c8316a21b90f0e0ee1a7b9 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sun, 31 May 2015 19:00:07 -0600 Subject: [PATCH] uart: fix missing inversion that will clear all other flags Signed-off-by: Jon Trulson Signed-off-by: Brendan Le Foll --- src/uart/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uart/uart.c b/src/uart/uart.c index 7801c3e..4a36415 100644 --- a/src/uart/uart.c +++ b/src/uart/uart.c @@ -317,7 +317,7 @@ mraa_uart_set_mode(mraa_uart_context dev, int bytesize, mraa_uart_parity_t parit // POSIX & linux doesn't support 1.5 and I've got bigger fish to fry switch (stopbits) { case 1: - termio.c_cflag &= CSTOPB; + termio.c_cflag &= ~CSTOPB; break; case 2: termio.c_cflag |= CSTOPB;