Skip to content

Commit cc0d332

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

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build/shared/revisions.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ ARDUINO 1.6.6
2121
* Introducing arduino-builder, a command line tool that properly calls gcc. Fixes lots of issues about buggy preprocessing.
2222

2323
[libraries]
24-
2524
* Bridge: YunClient.connected() returns true if there are bytes available for read. Thanks @RobAtticus
2625
* Bridge: YunClient.stop() now empties all buffers. Thanks @RobAtticus
2726

27+
[core]
28+
AVR: fixed wrong turnOffPWM() for TIMER0B. Thanks @gonzoveliki
29+
2830
ARDUINO 1.6.5-r5 - 2015.08.28
2931

3032
[ide]

hardware/arduino/avr/cores/arduino/wiring_digital.c

Lines changed: 1 addition & 1 deletion
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)