Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 965027d

Browse files
committed
esp32/machine_uart: Increase UART TX buffer size to 64.
This is the minimum size that the TX buffer allows. Any smaller and it loses the first 2 characters that are sent.
1 parent 27c95a1 commit 965027d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

esp32/machine_uart.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ STATIC mp_obj_t machine_uart_make_new(const mp_obj_type_t *type, size_t n_args,
237237
// Setup
238238
uart_param_config(self->uart_num, &uartcfg);
239239

240-
// RX and TX buffers are currently hardcoded at 256 and 32 bytes respectively.
241-
uart_driver_install(uart_num, 256, 32, 10, &UART_QUEUE[self->uart_num], 0);
240+
// RX and TX buffers are currently hardcoded at 256 and 64 bytes respectively.
241+
uart_driver_install(uart_num, 256, 64, 10, &UART_QUEUE[self->uart_num], 0);
242242

243243
mp_map_t kw_args;
244244
mp_map_init_fixed_table(&kw_args, n_kw, args + n_args);

0 commit comments

Comments
 (0)