Merge pull request #6021 from andrewleech/gpiote_uninit

nrf5x: fix array overflow in gpio configuration code
pull/6182/head
Cruz Monrreal 2018-02-22 21:21:35 -06:00 committed by GitHub
commit ee64c9cf0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ static void gpiote_pin_uninit(uint8_t pin)
if ((m_gpio_cfg[pin].direction == PIN_OUTPUT) && (!m_gpio_cfg[pin].used_as_irq)) {
nrf_drv_gpiote_out_uninit(pin);
}
else {
else if (m_gpio_cfg[pin].used_as_irq) {
nrf_drv_gpiote_in_uninit(pin);
}
}