X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/071e02c6b6b4837fa9cf0b6d4c749994e02638d7..99a132709e26342a376c5071d26dd87c40b04329:/Projects/Webserver/Lib/uip/clock.c?ds=sidebyside diff --git a/Projects/Webserver/Lib/uip/clock.c b/Projects/Webserver/Lib/uip/clock.c index 046b6e344..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); } @@ -36,3 +36,4 @@ clock_time_t clock_time() return time; } +