summaryrefslogtreecommitdiff
path: root/tuer-rfid
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-01-26 23:25:47 +0100
committerChristian Pointner <equinox@spreadspace.org>2015-01-26 23:25:47 +0100
commit4e14df8bd55f20327d08d8126b74df4d1ab8ce37 (patch)
tree92fca66cdecf9aa4ab6d7e21a2bf2162f8070dd2 /tuer-rfid
parentimplemented midi command for reset2bootloader (diff)
fixed wrong timer register usage
Diffstat (limited to 'tuer-rfid')
-rw-r--r--tuer-rfid/heartbeat.c2
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;