From 272d5cc93d049b3381030b202fd665f5f4714e1d Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Thu, 28 May 2015 03:42:32 +0200 Subject: [PATCH] Check if INT2 is actually defined before issuing warning in detachInterrupt This was caused after: https://github.com/arduino/Arduino/pull/3221 --- hardware/arduino/avr/cores/arduino/WInterrupts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardware/arduino/avr/cores/arduino/WInterrupts.c b/hardware/arduino/avr/cores/arduino/WInterrupts.c index 6663462be..71dd45cac 100644 --- a/hardware/arduino/avr/cores/arduino/WInterrupts.c +++ b/hardware/arduino/avr/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;