This commit is contained in:
Cristian Maglie 2015-09-21 12:03:26 +02:00
commit 987b9bf2a8
2 changed files with 3 additions and 3 deletions

View File

@ -40,14 +40,14 @@
// often work, but occasionally a race condition can occur that makes // often work, but occasionally a race condition can occur that makes
// Serial behave erratically. See https://github.com/arduino/Arduino/issues/2405 // Serial behave erratically. See https://github.com/arduino/Arduino/issues/2405
#if !defined(SERIAL_TX_BUFFER_SIZE) #if !defined(SERIAL_TX_BUFFER_SIZE)
#if (RAMEND < 1000) #if ((RAMEND - RAMSTART) < 1023)
#define SERIAL_TX_BUFFER_SIZE 16 #define SERIAL_TX_BUFFER_SIZE 16
#else #else
#define SERIAL_TX_BUFFER_SIZE 64 #define SERIAL_TX_BUFFER_SIZE 64
#endif #endif
#endif #endif
#if !defined(SERIAL_RX_BUFFER_SIZE) #if !defined(SERIAL_RX_BUFFER_SIZE)
#if (RAMEND < 1000) #if ((RAMEND - RAMSTART) < 1023)
#define SERIAL_RX_BUFFER_SIZE 16 #define SERIAL_RX_BUFFER_SIZE 16
#else #else
#define SERIAL_RX_BUFFER_SIZE 64 #define SERIAL_RX_BUFFER_SIZE 64

View File

@ -75,7 +75,7 @@ extern USBDevice_ USBDevice;
struct ring_buffer; struct ring_buffer;
#ifndef SERIAL_BUFFER_SIZE #ifndef SERIAL_BUFFER_SIZE
#if (RAMEND < 1000) #if ((RAMEND - RAMSTART) < 1023)
#define SERIAL_BUFFER_SIZE 16 #define SERIAL_BUFFER_SIZE 16
#else #else
#define SERIAL_BUFFER_SIZE 64 #define SERIAL_BUFFER_SIZE 64