[uart] Make rx pin respect pullup and pulldown settings (#9248)

This commit is contained in:
Anton Sergunov authored and GitHub committed 2025-10-22 10:10:25 +13:00
1 parent 8e8a2bde95
commit a05c5ea240
4 files changed
+31

No files matched your search

@@ -56,6 +56,13 @@ uint32_t ESP8266UartComponent::get_config() {
}
void ESP8266UartComponent::setup() {
if (this->rx_pin_) {
this->rx_pin_->setup();
}
if (this->tx_pin_ && this->rx_pin_ != this->tx_pin_) {
this->tx_pin_->setup();
}
// Use Arduino HardwareSerial UARTs if all used pins match the ones
// preconfigured by the platform. For example if RX disabled but TX pin
// is 1 we still want to use Serial.