Skip to content

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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy