1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-28 09:24:14 +01:00

Fixed wrong condition in turnOffPWM(..)

Fix #2163
This commit is contained in:
Cristian Maglie 2015-09-15 17:44:52 +02:00
parent 5b84aef301
commit cc0d3322d1
2 changed files with 4 additions and 2 deletions

View File

@ -21,10 +21,12 @@ ARDUINO 1.6.6
* Introducing arduino-builder, a command line tool that properly calls gcc. Fixes lots of issues about buggy preprocessing.
[libraries]
* Bridge: YunClient.connected() returns true if there are bytes available for read. Thanks @RobAtticus
* Bridge: YunClient.stop() now empties all buffers. Thanks @RobAtticus
[core]
AVR: fixed wrong turnOffPWM() for TIMER0B. Thanks @gonzoveliki
ARDUINO 1.6.5-r5 - 2015.08.28
[ide]

View File

@ -94,7 +94,7 @@ static void turnOffPWM(uint8_t timer)
case TIMER0A: cbi(TCCR0A, COM0A1); break;
#endif
#if defined(TIMER0B) && defined(COM0B1)
#if defined(TCCR0A) && defined(COM0B1)
case TIMER0B: cbi(TCCR0A, COM0B1); break;
#endif
#if defined(TCCR2A) && defined(COM2A1)