From 4d234a550c93989dcd4a9497e464523b605c8ae1 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 15 Sep 2015 17:44:52 +0200 Subject: Fixed wrong condition in turnOffPWM(..) Fix #2163 --- cores/arduino/wiring_digital.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cores/arduino/wiring_digital.c') 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) -- cgit v1.2.3-18-g5258