From 294403ffbfe0c1a3c3d2292e81fd99d1ee56c59a Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 31 Oct 2023 02:29:08 +0900 Subject: [PATCH] core: Make console buffer smaller for atmega32u2 memory shortage can happen when enabling all features --- tmk_core/protocol/lufa/lufa.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index c8a008d9..677d827c 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -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,