fix obvious typo

This commit is contained in:
Henry Gabryjelski committed 2020-04-21 19:53:15 -07:00
1 parent 0cb59145fd
commit 9d47073cae
1 file changed
+1 -1
+1 -1
View File
@@ -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;