From: Tilman Sauerbeck Date: Sat, 4 Jan 2020 17:24:44 +0000 (+0100) Subject: common: Increase size of the UART receive ringbuffer. X-Git-Url: http://git.code-monkey.de/?p=gps-watch.git;a=commitdiff_plain;h=edaa0dd45e4cc28c2b7b0f4888bd16d71236269a common: Increase size of the UART receive ringbuffer. The GPS module sends about ~380 bytes per second, which led to overflows of our 256 byte sized ringbuffer. --- diff --git a/src/common/uart0.c b/src/common/uart0.c index 2a983eb..e3105e0 100644 --- a/src/common/uart0.c +++ b/src/common/uart0.c @@ -25,7 +25,7 @@ #include "ringbuf.h" -static uint8_t uart0_rx_buf_space[1 << 8]; +static uint8_t uart0_rx_buf_space[1 << 9]; struct ringbuf uart0_rx_buf = RINGBUF_INIT (uart0_rx_buf_space, sizeof (uart0_rx_buf_space));