                     bufIndex++;
                 }
             }
+            logInterval = 1;
+        }
+        else
+        {
+            logInterval = counter - 1;
         }
     }
     else

        replayTimeOffset = millis();
        mode = MODE_READY;
        inReplay = true;
    }
    else
    {
        Serial.println("!!!! ERROR !!!!");
        Serial.print("Unable to read log file: "); Serial.println(fileName);
        Serial.println("===== Pausing =====");
        mode = MODE_PAUSE;
        inReplay = false;

		dtostrf(GPS.altitude, 6, 2, galt);

		//printBuffer += "\r\nL:";
		printBuffer += ',';
		printBuffer += lat; printBuffer += ',';
		printBuffer += lon; printBuffer += ',';
		printBuffer += spd; printBuffer += ','; //printBuffer += "kn,";
		printBuffer += ang; printBuffer += ','; //printBuffer += "dg,";
		printBuffer += galt; printBuffer += ','; //printBuffer += "m,";
