X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/b4af3f1fc9513d9f89df71c334862d5101807334..cba09e323d00bb6c17da133e7a6e5a233f02c42e:/Projects/TempDataLogger/TempDataLogger.c?ds=sidebyside diff --git a/Projects/TempDataLogger/TempDataLogger.c b/Projects/TempDataLogger/TempDataLogger.c index 15c3e6a44..bbbea47f2 100644 --- a/Projects/TempDataLogger/TempDataLogger.c +++ b/Projects/TempDataLogger/TempDataLogger.c @@ -211,8 +211,8 @@ void SetupHardware(void) RTC_Init(); /* 500ms logging interval timer configuration */ - OCR1A = (((F_CPU / 1024) / 2) - 1); - TCCR1B = (1 << WGM12) | (1 << CS12) | (1 << CS10); + OCR1A = (((F_CPU / 256) / 2) - 1); + TCCR1B = (1 << WGM12) | (1 << CS12); TIMSK1 = (1 << OCIE1A); /* Check if the Dataflash is working, abort if not */