Skip to content
Commit 5b876d4c authored by Sylvio Alves's avatar Sylvio Alves Committed by Daniel DeGrasse
Browse files

drivers: uart: esp32: apply correct mask for TX/RX signal inversion



Build a combined mask from the tx_invert and rx_invert flags and pass it
to uart_hal_inverse_signal(). Only invoke the HAL call when the mask is
non-zero, preventing unintended inversions and eliminating redundant
calls when no inversion is requested.

Signed-off-by: default avatarSylvio Alves <sylvio.alves@espressif.com>
parent 1fc66b1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment