Skip to content

Commit 6a68609

Browse files
committed
Remove interrupt enable in pinConfigure when attachInterrupt is used
1 parent e890169 commit 6a68609

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sandbox/sandbox.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ void setup() {
284284
LedCtrl.startupCycle();
285285

286286
// Set PD2 as input (button)
287-
pinConfigure(PIN_PD2, PIN_DIR_INPUT | PIN_INT_FALL);
287+
pinConfigure(PIN_PD2, PIN_DIR_INPUT);
288288
attachInterrupt(PIN_PD2, sendHeartbeatInterrupt, FALLING);
289289

290290
// Set PF6 as input (reset button)
291-
pinConfigure(PIN_PF6, PIN_DIR_INPUT | PIN_INT_FALL);
291+
pinConfigure(PIN_PF6, PIN_DIR_INPUT);
292292
attachInterrupt(PIN_PF6, resetInterrupt, FALLING);
293293

294294
sei();

0 commit comments

Comments
 (0)