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.
2 parents 0cb77d3 + 4caca67 commit 5cf1e45Copy full SHA for 5cf1e45
IRremoteInt.h
@@ -303,8 +303,8 @@ extern volatile irparams_t irparams;
303
#define TIMER_ENABLE_PWM (TCCR1A |= _BV(COM1A1))
304
#define TIMER_DISABLE_PWM (TCCR1A &= ~(_BV(COM1A1)))
305
#if defined(__AVR_ATmega8P__) || defined(__AVR_ATmega8__)
306
- #define TIMER_ENABLE_INTR (TIMSK = _BV(OCIE1A))
307
- #define TIMER_DISABLE_INTR (TIMSK = 0)
+ #define TIMER_ENABLE_INTR (TIMSK |= _BV(OCIE1A))
+ #define TIMER_DISABLE_INTR (TIMSK &= ~_BV(OCIE1A))
308
#else
309
#define TIMER_ENABLE_INTR (TIMSK1 = _BV(OCIE1A))
310
#define TIMER_DISABLE_INTR (TIMSK1 = 0)
0 commit comments