dj0tt / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Can't change serial buffer size #1036

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
See issue 1021

http://code.google.com/p/arduino/issues/detail?id=1021

Original comment by jaguar3s...@gmail.com on 8 Sep 2012 at 1:37

GoogleCodeExporter commented 9 years ago

Original comment by wes...@gmail.com on 30 Sep 2012 at 9:24