File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 40
40
// often work, but occasionally a race condition can occur that makes
41
41
// Serial behave erratically. See https://github.com/arduino/Arduino/issues/2405
42
42
#if !defined(SERIAL_TX_BUFFER_SIZE)
43
- #if (RAMEND < 1000 )
43
+ #if (( RAMEND - RAMSTART) < 1023 )
44
44
#define SERIAL_TX_BUFFER_SIZE 16
45
45
#else
46
46
#define SERIAL_TX_BUFFER_SIZE 64
47
47
#endif
48
48
#endif
49
49
#if !defined(SERIAL_RX_BUFFER_SIZE)
50
- #if (RAMEND < 1000 )
50
+ #if (( RAMEND - RAMSTART) < 1023 )
51
51
#define SERIAL_RX_BUFFER_SIZE 16
52
52
#else
53
53
#define SERIAL_RX_BUFFER_SIZE 64
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ extern USBDevice_ USBDevice;
75
75
struct ring_buffer ;
76
76
77
77
#ifndef SERIAL_BUFFER_SIZE
78
- #if (RAMEND < 1000 )
78
+ #if (( RAMEND - RAMSTART) < 1023 )
79
79
#define SERIAL_BUFFER_SIZE 16
80
80
#else
81
81
#define SERIAL_BUFFER_SIZE 64
You can’t perform that action at this time.
0 commit comments