1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-27 21:54:30 +01:00

Check if INT2 is actually defined before issuing warning in detachInterrupt

This was caused after: https://github.com/arduino/Arduino/pull/3221
This commit is contained in:
Kristian Sloth Lauszus 2015-05-28 03:42:32 +02:00
parent bd8f7932e6
commit 272d5cc93d

View File

@ -231,7 +231,7 @@ void detachInterrupt(uint8_t interruptNum) {
GICR &= ~(1 << INT2); // atmega32 GICR &= ~(1 << INT2); // atmega32
#elif defined(GIMSK) && defined(INT2) #elif defined(GIMSK) && defined(INT2)
GIMSK &= ~(1 << INT2); GIMSK &= ~(1 << INT2);
#else #elif defined(INT2)
#warning detachInterrupt may need some more work for this cpu (case 2) #warning detachInterrupt may need some more work for this cpu (case 2)
#endif #endif
break; break;