We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent fbb61ff commit 07c4d95Copy full SHA for 07c4d95
hardware/arduino/avr/cores/arduino/HardwareSerial.h
@@ -34,6 +34,11 @@
34
// location from which to read.
35
// NOTE: a "power of 2" buffer size is reccomended to dramatically
36
// optimize all the modulo operations for ring buffers.
37
+// WARNING: When buffer sizes are increased to > 256, the buffer index
38
+// variables are automatically increased in size, but the extra
39
+// atomicity guards needed for that are not implemented. This will
40
+// often work, but occasionally a race condition can occur that makes
41
+// Serial behave erratically. See https://github.com/arduino/Arduino/issues/2405
42
#if !defined(SERIAL_TX_BUFFER_SIZE)
43
#if (RAMEND < 1000)
44
#define SERIAL_TX_BUFFER_SIZE 16
0 commit comments