From: Joseph Coffland Date: Fri, 29 Sep 2017 06:38:55 +0000 (-0700) Subject: Fixed PWM clock setting X-Git-Url: https://git.buildbotics.com/?a=commitdiff_plain;h=2840d0f31396a139903be20bff10e0b5ad22afeb;p=bbctrl-firmware Fixed PWM clock setting --- diff --git a/src/pwr/main.c b/src/pwr/main.c index 58ba6d5..3ce7376 100644 --- a/src/pwr/main.c +++ b/src/pwr/main.c @@ -256,8 +256,8 @@ int main() { // Delayed start _delay_ms(100); - // Enable timer with clk/64 - TCCR0B = (CS02 << 0) | (CS01 << 1) | (CS00 << 1); + // Enable timer with clk/8 + TCCR0B = (0 << CS02) | (1 << CS01) | (0 << CS00); _delay_ms(200);