aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Webserver/Lib/uip/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/Webserver/Lib/uip/clock.c')
-rw-r--r--Projects/Webserver/Lib/uip/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/Webserver/Lib/uip/clock.c b/Projects/Webserver/Lib/uip/clock.c
index 86322966e..0906e6125 100644
--- a/Projects/Webserver/Lib/uip/clock.c
+++ b/Projects/Webserver/Lib/uip/clock.c
@@ -19,7 +19,7 @@ ISR(TIMER1_COMPA_vect)
//Initialise the clock
void clock_init()
{
- OCR1A = ((F_CPU / 1024) / 100);
+ OCR1A = (((F_CPU / 1024) / 100) - 1);
TCCR1B = ((1 << WGM12) | (1 << CS12) | (1 << CS10));
TIMSK1 = (1 << OCIE1A);
}