We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8767cd5 commit 441fd56Copy full SHA for 441fd56
hardware/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