We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6bf23d commit e22a691Copy full SHA for e22a691
IRremoteInt.h
@@ -274,7 +274,13 @@ extern volatile irparams_t irparams;
274
#define TIMER_ENABLE_INTR (TIMSK1 = _BV(OCIE1A))
275
#define TIMER_DISABLE_INTR (TIMSK1 = 0)
276
#endif
277
-#define TIMER_INTR_NAME TIMER1_COMPA_vect
+
278
+#if defined(__AVR_ATtinyX4__)
279
+ #define TIMER_INTR_NAME TIM1_COMPA_vect
280
+#else
281
+ #define TIMER_INTR_NAME TIMER1_COMPA_vect
282
+#endif
283
284
#define TIMER_CONFIG_KHZ(val) ({ \
285
const uint16_t pwmval = SYSCLOCK / 2000 / (val); \
286
TCCR1A = _BV(WGM11); \
0 commit comments