From 80a5e57938d7e1f3e01a33c5c0bd95c64616c90b Mon Sep 17 00:00:00 2001 From: hg Date: Thu, 5 Jun 2014 22:19:59 +0200 Subject: [PATCH] parity fixed --- src/uart.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uart.cpp b/src/uart.cpp index c4af638..c092d61 100644 --- a/src/uart.cpp +++ b/src/uart.cpp @@ -30,6 +30,7 @@ void uartInit() { P1SEL = BIT1 + BIT2; P1SEL2 = BIT1 + BIT2; + UCA0CTL0 |= UCPEN | UCPAR; // even parity UCA0CTL1 |= UCSSEL0; // ACLK UCA0BR0 = 13;