diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index f606e17d2..a06dd9aa8 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -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] diff --git a/hardware/arduino/avr/cores/arduino/wiring_digital.c b/hardware/arduino/avr/cores/arduino/wiring_digital.c index 51adb2cc9..27a62fc6c 100644 --- a/hardware/arduino/avr/cores/arduino/wiring_digital.c +++ b/hardware/arduino/avr/cores/arduino/wiring_digital.c @@ -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)