Skip to content

Commit b610868

Browse files
committed
Fixed wrong condition in turnOffPWM(..)
Fix #2163
1 parent 5ff1b92 commit b610868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino/avr/cores/arduino/wiring_digital.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static void turnOffPWM(uint8_t timer)
9494
case TIMER0A: cbi(TCCR0A, COM0A1); break;
9595
#endif
9696

97-
#if defined(TIMER0B) && defined(COM0B1)
97+
#if defined(TCCR0A) && defined(COM0B1)
9898
case TIMER0B: cbi(TCCR0A, COM0B1); break;
9999
#endif
100100
#if defined(TCCR2A) && defined(COM2A1)

0 commit comments

Comments
 (0)