summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2014-09-11 17:10:56 +1000
committerStanley Huang <stanleyhuangyc@gmail.com>2014-09-11 17:10:56 +1000
commitaf3fc044584db41ea23ffa2d1bd49d90fe6adbb5 (patch)
treec893191ebce4b94f756176419724ba4e51865f6e
parent3a6bf7c669fa017a6613984f321ee51a7e4b347e (diff)
download2021-arduino-obd-af3fc044584db41ea23ffa2d1bd49d90fe6adbb5.tar.gz
2021-arduino-obd-af3fc044584db41ea23ffa2d1bd49d90fe6adbb5.tar.bz2
2021-arduino-obd-af3fc044584db41ea23ffa2d1bd49d90fe6adbb5.zip
fix fuel consumption display
-rw-r--r--megalogger/megalogger.ino8
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);