Skip to content

Commit f4f62f9

Browse files
committed
1 parent 9f3438c commit f4f62f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hardware/arduino/cores/arduino/WInterrupts.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ void attachInterrupt(uint8_t interruptNum, void (*userFunc)(void), int mode) {
121121
#elif defined(MCUCR) && defined(ISC20) && defined(GIMSK) && defined(GIMSK)
122122
MCUCR = (MCUCR & ~((1 << ISC20) | (1 << ISC21))) | (mode << ISC20);
123123
GIMSK |= (1 << INT2);
124-
#else
125-
#warning attachInterrupt may need some more work for this cpu (case 1)
126124
#endif
127125
break;
128126
#endif

hardware/arduino/cores/arduino/wiring_analog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ int analogRead(uint8_t pin)
4545
if (pin >= 54) pin -= 54; // allow for channel or pin numbers
4646
#elif defined(__AVR_ATmega32U4__)
4747
if (pin >= 18) pin -= 18; // allow for channel or pin numbers
48+
#elif defined(__AVR_ATmega1284__)
49+
if (pin >= 24) pin -= 24; // allow for channel or pin numbers
4850
#else
4951
if (pin >= 14) pin -= 14; // allow for channel or pin numbers
5052
#endif

0 commit comments

Comments
 (0)