Skip to content

Commit b92ad55

Browse files
authored
fix: begin cts rts (#9353)
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.
1 parent 4123e20 commit b92ad55

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: cores/esp32/esp32-hal-uart.c

-2
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,6 @@ uart_t* uartBegin(uint8_t uart_nr, uint32_t baudrate, uint32_t config, int8_t rx
509509
uart->_rxfifo_full_thrhd = rxfifo_full_thrhd;
510510
uart->_rx_buffer_size = rx_buffer_size;
511511
uart->_tx_buffer_size = tx_buffer_size;
512-
uart->_ctsPin = -1;
513-
uart->_rtsPin = -1;
514512
uart->has_peek = false;
515513
uart->peek_byte = 0;
516514
}

0 commit comments

Comments
 (0)