Skip to content

Commit

Permalink
added one line to disable baud doubling on Uno
Browse files Browse the repository at this point in the history
  • Loading branch information
simen committed Feb 11, 2011
1 parent ef61efb commit 3b51a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiring_serial.c
Expand Up @@ -44,7 +44,7 @@ void beginSerial(long baud)
UBRR0L = ((F_CPU / 16 + baud / 2) / baud - 1);

/* baud doubler off - Only needed on Uno XXX */
// UCSR0A &= ~(1 << U2X0);
UCSR0A &= ~(1 << U2X0);

// enable rx and tx
UCSR0B |= 1<<RXEN0;
Expand Down

0 comments on commit 3b51a4b

Please sign in to comment.