Skip to content

Commit 3d923e9

Browse files
committed
Fix return in attachInterrupt
1 parent f63a5a9 commit 3d923e9

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
@@ -86,7 +86,7 @@ int attachInterrupt(uint32_t pin, voidFuncPtr callback, uint32_t mode)
8686
break;
8787

8888
default:
89-
return;
89+
return 0;
9090
}
9191

9292
for (int ch = 0; ch < NUMBER_OF_GPIO_TE; ch++) {

0 commit comments

Comments
 (0)