Extend 'uart:' with 'invert:' for esp32 (#1586)

This commit is contained in:
needspeed
2021-03-06 14:25:07 +01:00
committed by GitHub
parent e62bf333a2
commit 0f151a8f6b
4 changed files with 13 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ void UARTComponent::setup() {
}
int8_t tx = this->tx_pin_.has_value() ? *this->tx_pin_ : -1;
int8_t rx = this->rx_pin_.has_value() ? *this->rx_pin_ : -1;
this->hw_serial_->begin(this->baud_rate_, get_config(), rx, tx);
this->hw_serial_->begin(this->baud_rate_, get_config(), rx, tx, this->invert_);
this->hw_serial_->setRxBufferSize(this->rx_buffer_size_);
}