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:
parent
4fcb88cb51
commit
0db954a8a8
3 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue