]> git.donarmstrong.com Git - tmk_firmware.git/commitdiff
Increase buffer size of PS2 protocol
authortmk <nobody@nowhere>
Sat, 4 May 2013 05:51:46 +0000 (14:51 +0900)
committertmk <nobody@nowhere>
Sat, 4 May 2013 05:51:46 +0000 (14:51 +0900)
protocol/ps2.c
protocol/ps2_usart.c

index cf7b1f43ce42076e9b6eb876b844180afb427cc3..ed45609104f5be60fc7ae61f91b3cc57ef1df4f3 100644 (file)
@@ -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;
index 7d591c650678bdc6f9b6376e73038385d01b8c3b..9ea6b77868b66292a7105da4e0303708a08c7074 100644 (file)
@@ -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;