diff options
-rw-r--r-- | chip/stm32/gpio-f0-l.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/gpio-f0-l.c b/chip/stm32/gpio-f0-l.c index 87ba4baa9f..3482a8a552 100644 --- a/chip/stm32/gpio-f0-l.c +++ b/chip/stm32/gpio-f0-l.c @@ -65,8 +65,8 @@ int gpio_get_flags_by_mask(uint32_t port, uint32_t mask) if (STM32_EXTI_RTSR & mask) flags |= GPIO_INT_F_RISING; - if (STM32_EXTI_RTSR & mask) - flags |= GPIO_INT_F_RISING; + if (STM32_EXTI_FTSR & mask) + flags |= GPIO_INT_F_FALLING; return flags; } |