helpfor studient
Dependents: STM32_F103-C8T6basecanblink_led
Fork of mbed-dev by
Diff: targets/TARGET_NORDIC/TARGET_NRF5/gpio_api.c
- Revision:
- 183:a56a73fd2a6f
- Parent:
- 179:79309dc6340a
--- a/targets/TARGET_NORDIC/TARGET_NRF5/gpio_api.c Fri Feb 16 16:09:33 2018 +0000 +++ b/targets/TARGET_NORDIC/TARGET_NRF5/gpio_api.c Tue Mar 20 16:56:18 2018 +0000 @@ -112,7 +112,7 @@ 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); } }