Private
Public Access
2
0

uart: fix missing inversion that will clear all other flags

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Jon Trulson
2015-05-31 19:00:07 -06:00
committed by Brendan Le Foll
parent e0ce5454bd
commit b142f3fdda

View File

@@ -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;