From 4d32fbadb6c3a21cf89434262c67329bbce4afae Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 3 Jun 2022 23:32:43 +0900 Subject: [PATCH] core: Increase buffer size for sotware serial - serial_mouse can lost mouse data when enabling debug print - TODO: serial_soft blocks in ISR for too long time --- tmk_core/protocol/serial_soft.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tmk_core/protocol/serial_soft.c b/tmk_core/protocol/serial_soft.c index 569205bf..ab24b1f4 100644 --- a/tmk_core/protocol/serial_soft.c +++ b/tmk_core/protocol/serial_soft.c @@ -86,7 +86,9 @@ void serial_init(void) } /* RX ring buffer */ -#define RBUF_SIZE 8 +#ifndef RBUF_SIZE +#define RBUF_SIZE 256 +#endif static uint8_t rbuf[RBUF_SIZE]; static uint8_t rbuf_head = 0; static uint8_t rbuf_tail = 0;