diff --git a/cores/arduino/wiring.c b/cores/arduino/wiring.c index 8caf45521..4a00bc2b1 100644 --- a/cores/arduino/wiring.c +++ b/cores/arduino/wiring.c @@ -40,9 +40,9 @@ volatile unsigned long timer0_millis = 0; static unsigned char timer0_fract = 0; #if defined(TIM0_OVF_vect) -ISR(TIM0_OVF_vect) +ISR(TIM0_OVF_vect, __attribute__((weak)))) #else -ISR(TIMER0_OVF_vect) +ISR(TIMER0_OVF_vect, __attribute__((weak))) #endif { // copy these to local variables so they can be stored in registers