diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-11-15 00:04:45 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-11-15 00:04:45 +1100 |
commit | c971aa28894f2f79cd5b47daa963f2e6ac44d69e (patch) | |
tree | d97e90db504a6e1781bc6f01e1aebe7ef74d490f /megalogger/megalogger.ino | |
parent | e6ac35b49a45a22716987cf5c04ef0e60b7160be (diff) | |
download | 2021-arduino-obd-c971aa28894f2f79cd5b47daa963f2e6ac44d69e.tar.gz 2021-arduino-obd-c971aa28894f2f79cd5b47daa963f2e6ac44d69e.tar.bz2 2021-arduino-obd-c971aa28894f2f79cd5b47daa963f2e6ac44d69e.zip |
Improve Mega Logger
Diffstat (limited to 'megalogger/megalogger.ino')
-rw-r--r-- | megalogger/megalogger.ino | 2 |
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); |