summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2014-11-15 00:04:45 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2014-11-15 00:04:45 +1100
commitc971aa28894f2f79cd5b47daa963f2e6ac44d69e (patch)
treed97e90db504a6e1781bc6f01e1aebe7ef74d490f
parente6ac35b49a45a22716987cf5c04ef0e60b7160be (diff)
download2021-arduino-obd-c971aa28894f2f79cd5b47daa963f2e6ac44d69e.tar.gz
2021-arduino-obd-c971aa28894f2f79cd5b47daa963f2e6ac44d69e.tar.bz2
2021-arduino-obd-c971aa28894f2f79cd5b47daa963f2e6ac44d69e.zip
Improve Mega Logger
-rw-r--r--megalogger/megalogger.ino2
1 files changed, 1 insertions, 1 deletions
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);