We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8c6640 commit ef20d77Copy full SHA for ef20d77
arduino/avr/cores/arduino/HardwareSerial.h
@@ -40,14 +40,14 @@
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)
+#if ((RAMEND - RAMSTART) < 1023)
44
#define SERIAL_TX_BUFFER_SIZE 16
45
#else
46
#define SERIAL_TX_BUFFER_SIZE 64
47
#endif
48
49
#if !defined(SERIAL_RX_BUFFER_SIZE)
50
51
#define SERIAL_RX_BUFFER_SIZE 16
52
53
#define SERIAL_RX_BUFFER_SIZE 64
0 commit comments