File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
hardware/arduino/avr/cores/arduino Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 4040// often work, but occasionally a race condition can occur that makes
4141// Serial behave erratically. See https://github.com/arduino/Arduino/issues/2405
4242#if !defined(SERIAL_TX_BUFFER_SIZE)
43- #if (RAMEND < 1000 )
43+ #if (( RAMEND - RAMSTART) < 1023 )
4444#define SERIAL_TX_BUFFER_SIZE 16
4545#else
4646#define SERIAL_TX_BUFFER_SIZE 64
4747#endif
4848#endif
4949#if !defined(SERIAL_RX_BUFFER_SIZE)
50- #if (RAMEND < 1000 )
50+ #if (( RAMEND - RAMSTART) < 1023 )
5151#define SERIAL_RX_BUFFER_SIZE 16
5252#else
5353#define SERIAL_RX_BUFFER_SIZE 64
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ extern USBDevice_ USBDevice;
7575struct ring_buffer ;
7676
7777#ifndef SERIAL_BUFFER_SIZE
78- #if (RAMEND < 1000 )
78+ #if (( RAMEND - RAMSTART) < 1023 )
7979#define SERIAL_BUFFER_SIZE 16
8080#else
8181#define SERIAL_BUFFER_SIZE 64
You can’t perform that action at this time.
0 commit comments