From 9d47073cae3f4ac306897b8ddbcdb39469e66034 Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Tue, 21 Apr 2020 19:53:15 -0700 Subject: [PATCH] fix obvious typo --- cores/nRF5/WInterrupts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/nRF5/WInterrupts.c b/cores/nRF5/WInterrupts.c index 0f5265f5..cc2ad9c6 100644 --- a/cores/nRF5/WInterrupts.c +++ b/cores/nRF5/WInterrupts.c @@ -132,7 +132,7 @@ int attachInterrupt(uint32_t pin, voidFuncPtr callback, uint32_t mode) // skip if already used in AttachInterrupt for another pin if (channelMap[ch] != -1) continue; // skip if channel is not disabled (e.g., in use by some other component or library) - if (nrf_gpiote_te_is_enabled(ch)) continue; + if (nrf_gpiote_te_is_enabled(NRF_GPIOTE, ch)) continue; uint32_t tmp = NRF_GPIOTE->CONFIG[ch]; tmp &= oldRegMask; tmp |= newRegBits;