Skip to content

Commit 529970f

Browse files
author
Pelle van der Heide
committed
remove option for RX_PULLUP, this is enabled by default in esp-idf
1 parent dfd2a01 commit 529970f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/uart/emsuart_esp32.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ void EMSuart::start(const uint8_t tx_mode, const uint8_t rx_gpio, const uint8_t
9292
uart_param_config(EMSUART_NUM, &uart_config);
9393
uart_set_pin(EMSUART_NUM, tx_gpio, rx_gpio, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE);
9494
uart_set_line_inverse(EMSUART_NUM, inverse_mask);
95-
#if defined(EMSUART_RX_PULLUP)
96-
gpio_set_pull_mode(gpio_num_t(rx_gpio), GPIO_PULLUP_ONLY);
97-
#endif
9895
uart_driver_install(EMSUART_NUM, 129, 0, (EMS_MAXBUFFERSIZE + 1) * 2, &uart_queue, 0); // buffer must be > fifo
9996
uart_set_rx_full_threshold(EMSUART_NUM, 1);
10097
uart_set_rx_timeout(EMSUART_NUM, 0); // disable

0 commit comments

Comments
 (0)