summaryrefslogtreecommitdiff
path: root/megalogger
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2014-09-07 23:23:51 +1000
committerStanley Huang <stanleyhuangyc@gmail.com>2014-09-07 23:23:51 +1000
commit64aa417d12e0a5ae46648b5b0118b4b66b8c52c0 (patch)
tree85af9d3e4dc2642a5b96e4382c252507d67fada9 /megalogger
parent332f3d85d1204f864982ea7a192a8830c1bac012 (diff)
download2021-arduino-obd-64aa417d12e0a5ae46648b5b0118b4b66b8c52c0.tar.gz
2021-arduino-obd-64aa417d12e0a5ae46648b5b0118b4b66b8c52c0.tar.bz2
2021-arduino-obd-64aa417d12e0a5ae46648b5b0118b4b66b8c52c0.zip
minor fix
Diffstat (limited to 'megalogger')
-rw-r--r--megalogger/megalogger.ino10
1 files changed, 6 insertions, 4 deletions
diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino
index 2570444..23dee8a 100644
--- a/megalogger/megalogger.ino
+++ b/megalogger/megalogger.ino
@@ -141,11 +141,11 @@ public:
index = 0;
if (index2 == TIER_NUM2) {
index2 = 0;
- if (isValidPID(pidTier3[index3]))
+ if (isValidPID(pidTier3[index3])) {
logOBDData(pidTier3[index3]);
+ }
index3 = (index3 + 1) % TIER_NUM3;
if (index3 == 0) {
- // get and display voltage
int v = getVoltage();
lcd.setFontSize(FONT_SIZE_SMALL);
lcd.setCursor(108, 12);
@@ -155,8 +155,10 @@ public:
logData(PID_VOLTAGE, v);
}
} else {
- if (isValidPID(pidTier2[index2]))
- logOBDData(pidTier2[index2++]);
+ if (isValidPID(pidTier2[index2])) {
+ logOBDData(pidTier2[index2]);
+ }
+ index2++;
}
}