From a4883845bdb7cbf2689bde2000f8b06ef27e24be Mon Sep 17 00:00:00 2001 From: Rodrigo Garcia Date: Fri, 8 Mar 2024 00:43:31 -0300 Subject: [PATCH] fix: begin cts rts Begin() may undo a setpins() that has set RTS and/or CTS pin. This pins are only changed with RTS and CTS. setpins() can be called after or before begin() when called before, begin() shall not change those pins. --- cores/esp32/esp32-hal-uart.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cores/esp32/esp32-hal-uart.c b/cores/esp32/esp32-hal-uart.c index 34cf17ee0ea..cbb454645d5 100644 --- a/cores/esp32/esp32-hal-uart.c +++ b/cores/esp32/esp32-hal-uart.c @@ -509,8 +509,6 @@ uart_t* uartBegin(uint8_t uart_nr, uint32_t baudrate, uint32_t config, int8_t rx uart->_rxfifo_full_thrhd = rxfifo_full_thrhd; uart->_rx_buffer_size = rx_buffer_size; uart->_tx_buffer_size = tx_buffer_size; - uart->_ctsPin = -1; - uart->_rtsPin = -1; uart->has_peek = false; uart->peek_byte = 0; }