From be81a1358450fb9b9faff02e4ac8cd99ecddafeb Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Sat, 30 Apr 2011 11:00:11 +1000 Subject: [PATCH] make sure timer is initialised properly Reported-by: jv4779 --- timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timer.c b/timer.c index 308c467..390b082 100644 --- a/timer.c +++ b/timer.c @@ -108,11 +108,11 @@ void timer_init() // no outputs TCCR1A = 0; // Normal Mode - TCCR1B |= MASK(CS10); + TCCR1B = MASK(CS10); // set up "clock" comparator for first tick OCR1B = TICK_TIME & 0xFFFF; // enable interrupt - TIMSK1 |= MASK(OCIE1B); + TIMSK1 = MASK(OCIE1B); } #ifdef HOST