From a246fb7e13d7e649c868bcf709faeeae9b0862a4 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Tue, 15 Dec 2015 10:29:16 +1100 Subject: Update touch screen library --- megalogger/megalogger.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'megalogger/megalogger.ino') diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino index 34da1ab..8626dd0 100644 --- a/megalogger/megalogger.ino +++ b/megalogger/megalogger.ino @@ -628,7 +628,7 @@ void showECUCap() bool scanned = false; for (;;) { bool touched = false; - for (byte i = 0, n = 4; i < sizeof(pidlist) / sizeof(pidlist[0]) && !(touched = touch.available()); i++) { + for (byte i = 0, n = 4; i < sizeof(pidlist) / sizeof(pidlist[0]) && !touched; i++) { byte pid = pgm_read_byte(pidlist + i); if (obd.isValidPID(pid)) { int value; @@ -648,6 +648,7 @@ void showECUCap() lcd.print("N/A"); } } + touched = touch.available(); } if (touched) break; scanned = true; -- cgit v1.2.3