diff --git a/arch/arm/src/stm32f0l0g0/stm32_gpio.c b/arch/arm/src/stm32f0l0g0/stm32_gpio.c index 6fd0e1d1238..9271cb9d0b1 100644 --- a/arch/arm/src/stm32f0l0g0/stm32_gpio.c +++ b/arch/arm/src/stm32f0l0g0/stm32_gpio.c @@ -307,7 +307,7 @@ int stm32_configgpio(uint32_t cfgset) * Should it configured as an EXTI interrupt? */ - if ((cfgset & GPIO_EXTI) != 0) + if ((pinmode != GPIO_MODER_OUTPUT) && ((cfgset & GPIO_EXTI) != 0)) { uint32_t regaddr; int shift;