Using Arduino 1.0.1, in HardwareSerial.cpp the size of the serial buffer is
hardcoded (almost always) to 64 bytes. If you have bursty traffic, such as via
Bluetooth, it can be very easy to overrun this buffer and have problematic code
as a result (hence why I'm classifying this as a defect).
Unfortunately, although a simple #ifndef would allow users to set their own
buffer, this is not currently possible. To increase the buffer size you have to
modify the Arduino distribution code, which is not great (and means all project
users have to do the same).
Please use a simple #ifndef to only hardcode this value if it is not already
defined. As a side effect, this also means that users could actually set it to
lower values if preferred, too (for extremely memory-tight situations)!
Thanks!
Original issue reported on code.google.com by j...@tomahawk-player.org on 6 Sep 2012 at 11:10
Original issue reported on code.google.com by
j...@tomahawk-player.org
on 6 Sep 2012 at 11:10