diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-09-11 17:10:56 +1000 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-09-11 17:10:56 +1000 |
commit | af3fc044584db41ea23ffa2d1bd49d90fe6adbb5 (patch) | |
tree | c893191ebce4b94f756176419724ba4e51865f6e /megalogger | |
parent | 3a6bf7c669fa017a6613984f321ee51a7e4b347e (diff) | |
download | 2021-arduino-obd-af3fc044584db41ea23ffa2d1bd49d90fe6adbb5.tar.gz 2021-arduino-obd-af3fc044584db41ea23ffa2d1bd49d90fe6adbb5.tar.bz2 2021-arduino-obd-af3fc044584db41ea23ffa2d1bd49d90fe6adbb5.zip |
fix fuel consumption display
Diffstat (limited to 'megalogger')
-rw-r--r-- | megalogger/megalogger.ino | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino index 23dee8a..3ea1a72 100644 --- a/megalogger/megalogger.ino +++ b/megalogger/megalogger.ino @@ -571,9 +571,11 @@ private: lcd.printInt(value, 2); break; case PID_ENGINE_FUEL_RATE: - lcd.setFontSize(FONT_SIZE_SMALL); - lcd.setCursor(38, 12); - lcd.printInt(value); + if (value < 1000) { + lcd.setFontSize(FONT_SIZE_SMALL); + lcd.setCursor(38, 12); + lcd.printInt(value); + } break; } lcd.setColor(RGB16_WHITE); |