Remove ESP32 uart pin entries

See also 655327a8b1
This commit is contained in:
Otto Winter 2019-08-27 20:13:50 +02:00
parent 54c9dd4173
commit 22f9f75914
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -20,10 +20,6 @@ void UARTComponent::setup() {
// is 1 we still want to use Serial.
if (this->tx_pin_.value_or(1) == 1 && this->rx_pin_.value_or(3) == 3) {
this->hw_serial_ = &Serial;
} else if (this->tx_pin_.value_or(10) == 10 && this->rx_pin_.value_or(9) == 9) {
this->hw_serial_ = &Serial1;
} else if (this->tx_pin_.value_or(17) == 17 && this->rx_pin_.value_or(16) == 16) {
this->hw_serial_ = &Serial2;
} else {
this->hw_serial_ = new HardwareSerial(next_uart_num++);
}