aboutsummaryrefslogtreecommitdiff
path: root/cores
diff options
context:
space:
mode:
authorKristian Sloth Lauszus <lauszus@gmail.com>2015-05-28 03:42:32 +0200
committerKristian Sloth Lauszus <lauszus@gmail.com>2015-05-28 03:42:32 +0200
commit53d77c30ce11816bd32afaf2538aab1fa29d47dd (patch)
tree209a13690c28d5e631d2f44cc9654a1881482e3c /cores
parent1bc9ee33f8ff4d433f8a1c23f07314560dd8f7b2 (diff)
Check if INT2 is actually defined before issuing warning in detachInterrupt
This was caused after: https://github.com/arduino/Arduino/pull/3221
Diffstat (limited to 'cores')
-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;