Closed GoogleCodeExporter closed 9 years ago
try_again:
if (use_u2x) {
*_ucsra = 1 << _u2x;
baud_setting = (F_CPU / 4 / baud - 1) / 2;
} else {
*_ucsra = 0;
baud_setting = (F_CPU / 8 / baud - 1) / 2;
}
if ( (baud_setting > 4095) && use_u2x )
{
use_u2x = false;
goto try_again;
}
Original comment by dmel...@gmail.com
on 14 May 2011 at 4:04
https://github.com/arduino/Arduino/commit/db64d2fc323219c3487947aa28bee07385c96a
67
Note that this exposes a matching bug in the 8U2 firmware:
http://code.google.com/p/arduino/issues/detail?id=542
Original comment by dmel...@gmail.com
on 14 May 2011 at 4:30
Original issue reported on code.google.com by
henry.j....@gmail.com
on 12 Apr 2011 at 8:44