aboutsummaryrefslogtreecommitdiff
path: root/cores
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2015-09-15 17:44:52 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-09-18 11:01:08 +0200
commit4d234a550c93989dcd4a9497e464523b605c8ae1 (patch)
treecbfd1eab53d77adbed10cd44d7df706ce420a919 /cores
parent07b4e1135486632791a7ca0f225541f65b2b3350 (diff)
Fixed wrong condition in turnOffPWM(..)
Fix #2163
Diffstat (limited to 'cores')
-rw-r--r--cores/arduino/wiring_digital.c2
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)