core: Make console buffer smaller for atmega32u2

memory shortage can happen when enabling all features
This commit is contained in:
tmk 2023-10-31 02:29:08 +09:00
parent f61b50395a
commit 294403ffbf

View file

@ -105,7 +105,11 @@ host_driver_t lufa_driver = {
* Console
******************************************************************************/
#ifdef CONSOLE_ENABLE
#define SENDBUF_SIZE 256
# ifdef _AVR_ATmega32U2_H_
# define SENDBUF_SIZE 128
# else
# define SENDBUF_SIZE 256
# endif
static uint8_t sbuf[SENDBUF_SIZE];
static ringbuf_t sendbuf = {
.buffer = sbuf,