Skip to content

Commit b25accf

Browse files
committed
Merge pull request Arduino-IRremote#11 from fpo/patch-1
Timer2 disable interrupt
2 parents ade7cb6 + 11a43ec commit b25accf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IRremoteInt.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ extern volatile irparams_t irparams;
196196
#define TIMER_ENABLE_PWM (TCCR2A |= _BV(COM2B1))
197197
#define TIMER_DISABLE_PWM (TCCR2A &= ~(_BV(COM2B1)))
198198
#define TIMER_ENABLE_INTR (TIMSK2 = _BV(OCIE2A))
199-
#define TIMER_DISABLE_INTR (TIMSK2 - 0)
199+
#define TIMER_DISABLE_INTR (TIMSK2 = 0)
200200
#define TIMER_INTR_NAME TIMER2_COMPA_vect
201201
#define TIMER_CONFIG_KHZ(val) ({ \
202202
const uint8_t pwmval = SYSCLOCK / 2000 / (val); \

0 commit comments

Comments
 (0)