projects
/
contrib
/
mraa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0ce545
)
uart: fix missing inversion that will clear all other flags
author
Jon Trulson
<jtrulson@ics.com>
Mon, 1 Jun 2015 01:00:07 +0000
(19:00 -0600)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Mon, 1 Jun 2015 10:20:18 +0000
(11:20 +0100)
Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/uart/uart.c
patch
|
blob
|
history
diff --git
a/src/uart/uart.c
b/src/uart/uart.c
index
7801c3e
..
4a36415
100644
(file)
--- 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;