diff options
Diffstat (limited to 'tuer-rfid/heartbeat.c')
-rw-r--r-- | tuer-rfid/heartbeat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tuer-rfid/heartbeat.c b/tuer-rfid/heartbeat.c index 109ce82..b656521 100644 --- a/tuer-rfid/heartbeat.c +++ b/tuer-rfid/heartbeat.c @@ -57,7 +57,7 @@ void heartbeat_init(void) TCCR0A = 1<<WGM01; // OC0A and OC0B as normal output, WGM = 2 (CTC) TCCR0B = 1<<CS02 | 1<<CS00; // Prescaler 1:1024 OCR0A = 155; // (1+155)*1024 = 159744 -> ~10 ms @ 16 MHz - TCNT2 = 0; + TCNT0 = 0; TIMSK0 = 1<<OCIE0A; FASTBEAT_DDR |= 1<<FASTBEAT_BIT; |