Fixed PDI/TPI programming speed of ~250KHz in the AVRISP-MKII Clone project, instead...
[pub/USBasp.git] / Projects / TempDataLogger / TempDataLogger.c
index c572a38..c3cfd65 100644 (file)
@@ -208,7 +208,7 @@ void SetupHardware(void)
        TWI_Init();
 
        /* 500ms logging interval timer configuration */
        TWI_Init();
 
        /* 500ms logging interval timer configuration */
-       OCR1A   = ((F_CPU / 1024) / 2);
+       OCR1A   = (((F_CPU / 1024) / 2) - 1);
        TCCR1B  = (1 << WGM12) | (1 << CS12) | (1 << CS10);
        TIMSK1  = (1 << OCIE1A);
 
        TCCR1B  = (1 << WGM12) | (1 << CS12) | (1 << CS10);
        TIMSK1  = (1 << OCIE1A);