added one line to disable baud doubling on Uno

This commit is contained in:
Simen Svale Skogsrud 2011-02-11 08:25:49 +01:00
parent ef61efbf70
commit 3b51a4b81e

View File

@ -44,7 +44,7 @@ void beginSerial(long baud)
UBRR0L = ((F_CPU / 16 + baud / 2) / baud - 1); UBRR0L = ((F_CPU / 16 + baud / 2) / baud - 1);
/* baud doubler off - Only needed on Uno XXX */ /* baud doubler off - Only needed on Uno XXX */
// UCSR0A &= ~(1 << U2X0); UCSR0A &= ~(1 << U2X0);
// enable rx and tx // enable rx and tx
UCSR0B |= 1<<RXEN0; UCSR0B |= 1<<RXEN0;