Skip to content

Commit e890169

Browse files
committed
Remove unneccessary interrupt enable for pinConfigure when attachInterrupt is used
1 parent 4455966 commit e890169

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/power_down/power_down.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void setup() {
3434

3535
// Configure SW0 for interrupt so we can wake the device up from sleep by
3636
// pressing the button
37-
pinConfigure(SW0, PIN_DIR_INPUT | PIN_INT_FALL);
37+
pinConfigure(SW0, PIN_DIR_INPUT);
3838
attachInterrupt(SW0, buttonPressedInterrupt, FALLING);
3939

4040
// Now we configure the low power module for power down configuration, where

examples/power_save/power_save.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void setup() {
3333

3434
// Configure SW0 for interrupt so we can wake the device up from sleep by
3535
// pressing the button
36-
pinConfigure(SW0, PIN_DIR_INPUT | PIN_INT_FALL);
36+
pinConfigure(SW0, PIN_DIR_INPUT);
3737
attachInterrupt(SW0, buttonPressedInterrupt, FALLING);
3838

3939
// Now we configure the power save configuration. Note that this has to be

0 commit comments

Comments
 (0)