Skip to content

Commit fb7c2cc

Browse files
Torben Nielsenfacchinm
Torben Nielsen
authored andcommitted
Create timer0 overflow interrupt service routine for all ATtinies not just 24, 44 and 84
1 parent 6c861d8 commit fb7c2cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/arduino/wiring.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ volatile unsigned long timer0_overflow_count = 0;
3939
volatile unsigned long timer0_millis = 0;
4040
static unsigned char timer0_fract = 0;
4141

42-
#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__)
42+
#if defined(TIM0_OVF_vect)
4343
ISR(TIM0_OVF_vect)
4444
#else
4545
ISR(TIMER0_OVF_vect)

0 commit comments

Comments
 (0)