Skip to content

Commit

Permalink
fix: begin cts rts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SuGlider authored Mar 8, 2024
1 parent 4123e20 commit a488384
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cores/esp32/esp32-hal-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a488384

Please sign in to comment.