Skip to content

Commit 660b98d

Browse files
2 parents 9f38307 + 1d45980 commit 660b98d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

digistump-avr/libraries/DigisparkIRLib/IRLibTimer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@
109109
#define TIMER_RESET
110110
#define TIMER_ENABLE_PWM (TCCR0A |= _BV(COM0B1))
111111
#define TIMER_DISABLE_PWM (TCCR0A &= ~(_BV(COM0B1)))
112-
#define TIMER_ENABLE_INTR (TIMSK = _BV(OCIE0A))
113-
#define TIMER_DISABLE_INTR (TIMSK = 0)
112+
#define TIMER_ENABLE_INTR (TIMSK |= _BV(OCIE0A))
113+
#define TIMER_DISABLE_INTR (TIMSK &= ~(_BV(OCIE0A)))
114114
#define TIMER_INTR_NAME TIMER0_COMPA_vect
115115
#define TIMER_CONFIG_KHZ(val) ({ \
116116
const uint8_t pwmval = SYSCLOCK / 2000 / (val); \

0 commit comments

Comments
 (0)