Skip to content

Commit 9d47073

Browse files
committed
fix obvious typo
1 parent 0cb5914 commit 9d47073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/nRF5/WInterrupts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ int attachInterrupt(uint32_t pin, voidFuncPtr callback, uint32_t mode)
132132
// skip if already used in AttachInterrupt for another pin
133133
if (channelMap[ch] != -1) continue;
134134
// skip if channel is not disabled (e.g., in use by some other component or library)
135-
if (nrf_gpiote_te_is_enabled(ch)) continue;
135+
if (nrf_gpiote_te_is_enabled(NRF_GPIOTE, ch)) continue;
136136
uint32_t tmp = NRF_GPIOTE->CONFIG[ch];
137137
tmp &= oldRegMask;
138138
tmp |= newRegBits;

0 commit comments

Comments
 (0)