fix compilation with new avr-gcc and avr-libc
[aversive.git] / modules / hardware / timer / timer2_register_OC_at_tics.c
index 84c5c2b..4e5bf4a 100644 (file)
@@ -30,7 +30,7 @@
 #include <timer_config.h>
 
 
-#if defined TIMER2_ENABLED && defined SIG_OUTPUT_COMPARE2
-DEFINE_REGISTER_OC_INTR_AT_TICS(2)
+#if defined TIMER2_ENABLED && defined TIMER2_COMP_vect_id
+DEFINE_REGISTER_OC_INTR_AT_TICS(2, TIMER2_COMP_vect)
 #endif