Skip to content

Commit 314479e

Browse files
committed
IR_USE_TIMER_TINY1
1 parent efbdb1d commit 314479e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/private/IRremoteBoardDefs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
#define BLINKLED_OFF() (PORTD &= B11111110)
127127

128128
// Nano Every, Uno WiFi Rev2, nRF5 BBC MicroBit, Nano33_BLE
129-
#elif defined(__AVR_ATmega4809__) || defined(NRF5) || defined(ARDUINO_ARCH_NRF52840)
129+
#elif defined(__AVR_ATmega4809__) || defined(NRF5) || defined(ARDUINO_ARCH_NRF52840) || defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny85__)
130130
#define BLINKLED LED_BUILTIN
131131
#define BLINKLED_ON() (digitalWrite(BLINKLED, HIGH))
132132
#define BLINKLED_OFF() (digitalWrite(BLINKLED, LOW))
@@ -861,7 +861,7 @@ static void timerConfigForReceive() {
861861
#elif defined(IR_USE_TIMER_TINY1)
862862
#define TIMER_RESET_INTR_PENDING
863863
#define TIMER_ENABLE_SEND_PWM (GTCCR |= _BV(PWM1B)) // Enable pin 3 PWM output (PB4 - Arduino D4)
864-
#define TIMER_DISABLE_SEND_PWM (GTCCR &= ~(_BV(PWM1B))))
864+
#define TIMER_DISABLE_SEND_PWM (GTCCR &= ~(_BV(PWM1B)))
865865
#define TIMER_ENABLE_RECEIVE_INTR (TIMSK |= _BV(OCIE1B))
866866
#define TIMER_DISABLE_RECEIVE_INTR (TIMSK &= ~(_BV(OCIE1B)))
867867
#define TIMER_INTR_NAME TIMER1_COMPB_vect

0 commit comments

Comments
 (0)