Skip to content

Commit 272d5cc

Browse files
committed
Check if INT2 is actually defined before issuing warning in detachInterrupt
This was caused after: #3221
1 parent bd8f793 commit 272d5cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/arduino/avr/cores/arduino/WInterrupts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void detachInterrupt(uint8_t interruptNum) {
231231
GICR &= ~(1 << INT2); // atmega32
232232
#elif defined(GIMSK) && defined(INT2)
233233
GIMSK &= ~(1 << INT2);
234-
#else
234+
#elif defined(INT2)
235235
#warning detachInterrupt may need some more work for this cpu (case 2)
236236
#endif
237237
break;

0 commit comments

Comments
 (0)