[uart] Fix flow_control_pin inverted flag ignored on ESP-IDF (#14410)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jonathan Swoboda
2026-03-03 08:57:52 +13:00
committed by Jesse Hills
co-authored by Claude Opus 4.6
parent 0ac61cbb9b
commit d2a819eb77
@@ -167,6 +167,9 @@ void IDFUARTComponent::load_settings(bool dump_config) {
if (this->rx_pin_ != nullptr && this->rx_pin_->is_inverted()) {
invert |= UART_SIGNAL_RXD_INV;
}
if (this->flow_control_pin_ != nullptr && this->flow_control_pin_->is_inverted()) {
invert |= UART_SIGNAL_RTS_INV;
}
err = uart_set_line_inverse(this->uart_num_, invert);
if (err != ESP_OK) {