Do you think the original programmer meant to use RAMSIZE rather than RAMEND?
It does seem to be a bug to compare a memory address with a number. RAMSIZE would be the actual memory size,
RAMEND just happens to be the last address and could be anywhere depending on the internal memory map.
Bug or not it would be nice to use a smaller buffer on processors with 1K of RAM.
[glow]#if ! defined( RAMSIZE )#define RAMSIZE ( RAMEND + 1 )#endif[/glow]#if (RAMSIZE <= 1000) #define RX_BUFFER_SIZE 32#else #define RX_BUFFER_SIZE 128#endif