aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WInterrupts.c
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2015-05-28 09:51:25 +0200
committerCristian Maglie <c.maglie@bug.st>2015-05-28 09:51:25 +0200
commit39c65393b8f88d9729caeac3f928d7cfaf811fdf (patch)
tree3bb4660aa5125aa1dbe00b5e827ad816fc482c84 /cores/arduino/WInterrupts.c
parentcd7eae098c80049b83d809711473791fefee7427 (diff)
parent53d77c30ce11816bd32afaf2538aab1fa29d47dd (diff)
Merge pull request #3244 from Lauszus/INT2
Check if INT2 is actually defined before issuing warning in detachInterrupt
Diffstat (limited to 'cores/arduino/WInterrupts.c')
-rw-r--r--cores/arduino/WInterrupts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/WInterrupts.c b/cores/arduino/WInterrupts.c
index 6663462..71dd45c 100644
--- a/cores/arduino/WInterrupts.c
+++ b/cores/arduino/WInterrupts.c
@@ -231,7 +231,7 @@ void detachInterrupt(uint8_t interruptNum) {
GICR &= ~(1 << INT2); // atmega32
#elif defined(GIMSK) && defined(INT2)
GIMSK &= ~(1 << INT2);
- #else
+ #elif defined(INT2)
#warning detachInterrupt may need some more work for this cpu (case 2)
#endif
break;