summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-05-01 14:50:27 +1000
committerDamien George <damien.p.george@gmail.com>2019-05-01 14:53:21 +1000
commitcbeac903e86bfb0c50f55960201f9eaa9d45745a (patch)
treea4f3d50ecfb22a5afaee33c2cb7d75782d91c715
parentff0306dfa5ceee8c2c52ae82c4336e5c23d36176 (diff)
stm32/main: Increase default UART REPL rx buffer from 64 to 260 bytes.
This allows the UART to buffer at least 256 bytes (taking into account the extra byte needed by the ring buffer, and word alignment).
-rw-r--r--ports/stm32/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/main.c b/ports/stm32/main.c
index 0bdbbd481..a37c6f897 100644
--- a/ports/stm32/main.c
+++ b/ports/stm32/main.c
@@ -78,7 +78,7 @@ STATIC fs_user_mount_t fs_user_mount_flash;
#if defined(MICROPY_HW_UART_REPL)
#ifndef MICROPY_HW_UART_REPL_RXBUF
-#define MICROPY_HW_UART_REPL_RXBUF (64)
+#define MICROPY_HW_UART_REPL_RXBUF (260)
#endif
STATIC pyb_uart_obj_t pyb_uart_repl_obj;
STATIC uint8_t pyb_uart_repl_rxbuf[MICROPY_HW_UART_REPL_RXBUF];