tests: gpio_basic_api: fix misplacement of debounce flag

The debounce flag is to be provided to the pin configuration, not the
pin interrupt configuration.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2019-10-12 05:45:49 -05:00 committed by Carles Cufí
commit 0db954a8a8
3 changed files with 6 additions and 6 deletions

View file

@ -687,6 +687,7 @@ static inline int gpio_pin_configure(struct device *port, u32_t pin,
data->invert &= ~BIT(pin);
}
if (api->pin_interrupt_configure) {
flags &= ~GPIO_INT_DEBOUNCE;
ret = z_impl_gpio_pin_interrupt_configure(port, pin, flags);
}