diff options
author | Cristian Maglie <c.maglie@arduino.cc> | 2015-09-15 17:44:52 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-09-18 11:01:08 +0200 |
commit | 4d234a550c93989dcd4a9497e464523b605c8ae1 (patch) | |
tree | cbfd1eab53d77adbed10cd44d7df706ce420a919 | |
parent | 07b4e1135486632791a7ca0f225541f65b2b3350 (diff) |
Fixed wrong condition in turnOffPWM(..)
Fix #2163
-rw-r--r-- | cores/arduino/wiring_digital.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cores/arduino/wiring_digital.c b/cores/arduino/wiring_digital.c index 51adb2c..27a62fc 100644 --- a/cores/arduino/wiring_digital.c +++ b/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) |