Fixed PWM clock setting
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 29 Sep 2017 06:38:55 +0000 (23:38 -0700)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 29 Sep 2017 06:38:55 +0000 (23:38 -0700)
src/pwr/main.c

index 58ba6d52b773b5e37072444626c4af9c3cee6d95..3ce73762fc52a4683ec2e429f480d45a64891056 100644 (file)
@@ -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);