Skip to content
Commit 3d48ce80 authored by Leandro Pereira's avatar Leandro Pereira Committed by Anas Nashif
Browse files

drivers: gpio: esp32: Properly convert interrupt triggering mode



Masks for level- and edge-triggering levels are 0, so the following
check will be always true:

    if ((flags & GPIO_INT_ACTIVE_LOW) == GPIO_INT_ACTIVE_LOW)

Invert the evaluation order, by checking the masks that are not 0
first.

Jira: ZEP-2557
Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent b4bfdaa3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment