added one line to disable baud doubling on Uno
This commit is contained in:
parent
ef61efbf70
commit
3b51a4b81e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user