aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2013-03-26 17:29:00 +0100
committerJakob Odersky <jodersky@gmail.com>2013-03-26 17:29:00 +0100
commit75d0731205c125cf49d19c60e474ec378af54423 (patch)
tree95619caa28a8fbbbfda3363464ef2c0f788af9bf
parent32fb911a2aaca66948441e7c12f733217562879a (diff)
downloadace-75d0731205c125cf49d19c60e474ec378af54423.tar.gz
ace-75d0731205c125cf49d19c60e474ec378af54423.tar.bz2
ace-75d0731205c125cf49d19c60e474ec378af54423.zip
fix copy-paste error: enable USART interrupt on init
-rw-r--r--c/arduino/ace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/arduino/ace.c b/c/arduino/ace.c
index ea05e1c..a1edae0 100644
--- a/c/arduino/ace.c
+++ b/c/arduino/ace.c
@@ -22,7 +22,7 @@ static void init_s0(uint32_t baud) {
UBRR0H = baud_setting >> 8;
UBRR0L = baud_setting;
UCSR0B |= (1 << RXEN0) | (1 << TXEN0) | (1 << RXCIE0); // defaults to 8-bit, no parity, 1 stop bit
- UCSR0B &= ~(1 << UDRIE0) | (1 << TXEN0) | (1 << RXCIE0);
+ UCSR0B &= ~(1 << UDRIE0);
}
static void send_to_s0(uint8_t byte) {