File tree 2 files changed +14
-1
lines changed
hardware/arduino/avr/cores/arduino
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ ARDUINO 1.6.5
19
19
[core]
20
20
* AVR: delayMicroseconds(..) doesn't hang if called with 0. Thanks @cano64
21
21
* AVR: delayMicroseconds(..), added support for 1Mhz, 12Mhz and 24Mhz. Thanks @cano64
22
- * SAM: added watchdog routing for Due. Thanks @bobc
22
+ * AVR: added missing case in detachInterrupt(). Thanks @vicatcu
23
+ * SAM: added watchdog routine for Due. Thanks @bobc
23
24
24
25
ARDUINO 1.6.4 - 2015.05.06
25
26
Original file line number Diff line number Diff line change @@ -223,6 +223,18 @@ void detachInterrupt(uint8_t interruptNum) {
223
223
#warning detachInterrupt may need some more work for this cpu (case 1)
224
224
#endif
225
225
break ;
226
+
227
+ case 2 :
228
+ #if defined(EIMSK ) && defined(INT2 )
229
+ EIMSK &= ~(1 << INT2 );
230
+ #elif defined(GICR ) && defined(INT2 )
231
+ GICR &= ~(1 << INT2 ); // atmega32
232
+ #elif defined(GIMSK ) && defined(INT2 )
233
+ GIMSK &= ~(1 << INT2 );
234
+ #else
235
+ #warning detachInterrupt may need some more work for this cpu (case 2)
236
+ #endif
237
+ break ;
226
238
#endif
227
239
}
228
240
You can’t perform that action at this time.
0 commit comments