1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-19 09:42:11 +03:00

Merge pull request #3244 from Lauszus/INT2

Check if INT2 is actually defined before issuing warning in detachInterrupt
This commit is contained in:
Cristian Maglie
2015-05-28 09:51:25 +02:00

View File

@ -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;