We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3076c63 + 07c4d95 commit cd56786Copy full SHA for cd56786
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