From c971aa28894f2f79cd5b47daa963f2e6ac44d69e Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Sat, 15 Nov 2014 00:04:45 +1100 Subject: Improve Mega Logger --- megalogger/megalogger.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'megalogger') diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino index 4e7e5e8..93713b3 100644 --- a/megalogger/megalogger.ino +++ b/megalogger/megalogger.ino @@ -475,7 +475,7 @@ void logOBDData(byte pid) if (pid == PID_SPEED) { // estimate distance travelled since last speed update - distance += (uint32_t)(value + lastSpeed) * (logger.dataTime - lastSpeedTime) / 5760; + distance += (uint32_t)(value + lastSpeed) * (logger.dataTime - lastSpeedTime) / 6000; // display speed lcd.setFontSize(FONT_SIZE_MEDIUM); lcd.setCursor(250, 5); -- cgit v1.2.3