From edaa0dd45e4cc28c2b7b0f4888bd16d71236269a Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sat, 4 Jan 2020 18:24:44 +0100 Subject: [PATCH] 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. --- src/common/uart0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.30.2