Skip to content

Commit

Permalink
core: Increase buffer size for sotware serial
Browse files Browse the repository at this point in the history
- serial_mouse can lost mouse data when enabling debug print
- TODO: serial_soft blocks in ISR for too long time
  • Loading branch information
tmk committed Jun 3, 2022
1 parent af42439 commit 4d32fba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tmk_core/protocol/serial_soft.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4d32fba

Please sign in to comment.