From: tmk Date: Sat, 4 May 2013 05:51:46 +0000 (+0900) Subject: Increase buffer size of PS2 protocol X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=7343366d3d962ae1fa8cd3b280f7702396337dbf;p=max%2Ftmk_keyboard.git Increase buffer size of PS2 protocol --- diff --git a/protocol/ps2.c b/protocol/ps2.c index cf7b1f43..ed456091 100644 --- a/protocol/ps2.c +++ b/protocol/ps2.c @@ -181,7 +181,7 @@ uint8_t ps2_host_recv(void) } #else /* ring buffer to store ps/2 key data */ -#define PBUF_SIZE 8 +#define PBUF_SIZE 32 static uint8_t pbuf[PBUF_SIZE]; static uint8_t pbuf_head = 0; static uint8_t pbuf_tail = 0; diff --git a/protocol/ps2_usart.c b/protocol/ps2_usart.c index 7d591c65..9ea6b778 100644 --- a/protocol/ps2_usart.c +++ b/protocol/ps2_usart.c @@ -287,7 +287,7 @@ static inline void inhibit(void) /*-------------------------------------------------------------------- * Ring buffer to store scan codes from keyboard *------------------------------------------------------------------*/ -#define PBUF_SIZE 8 +#define PBUF_SIZE 32 static uint8_t pbuf[PBUF_SIZE]; static uint8_t pbuf_head = 0; static uint8_t pbuf_tail = 0;