Serial Buffer Size

Hi

I need to increase my Serial RX buffer from 64 to 128
I tried to change in HardwareSerial.h and this works fine.
But then i change for all projects and this i dont want.
So i tried to change the size in my .ino project by defining
it in the top.
#define SERIAL_RX_BUFFER_SIZE 128

It compiles fine but dont increase the buffer size.

Would appreciate some guidance.
/Peter

Don’t know if this would work but if you wrapped the definitions in an #if!def so if SERIAL_BUFFER_SIZE is already defined you use that else it does the default.

#if !defined(SERIAL_BUFFER_SIZE)
#if (RAMEND < 1000)
  #define SERIAL_BUFFER_SIZE 16
#else
  #define SERIAL_BUFFER_SIZE 64
#endif
#endif