From af3fc044584db41ea23ffa2d1bd49d90fe6adbb5 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Thu, 11 Sep 2014 17:10:56 +1000 Subject: fix fuel consumption display --- megalogger/megalogger.ino | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'megalogger') 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); -- cgit v1.2.3