summaryrefslogtreecommitdiff
path: root/megalogger/megalogger.ino
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@live.com>2016-07-06 14:57:50 +0800
committerStanley Huang <stanleyhuangyc@live.com>2016-07-06 14:57:50 +0800
commitc5a9fdb80df58015c0705d23e2208cb576affd7c (patch)
tree9bc8b7957dea05f3130da6821e65fed441802892 /megalogger/megalogger.ino
parent23ea91258a34ab568c5dd2878f2eaa8a0dec6fe7 (diff)
download2021-arduino-obd-c5a9fdb80df58015c0705d23e2208cb576affd7c.tar.gz
2021-arduino-obd-c5a9fdb80df58015c0705d23e2208cb576affd7c.tar.bz2
2021-arduino-obd-c5a9fdb80df58015c0705d23e2208cb576affd7c.zip
Renaming read() to readPID() in OBD library
Diffstat (limited to 'megalogger/megalogger.ino')
-rw-r--r--megalogger/megalogger.ino8
1 files changed, 4 insertions, 4 deletions
diff --git a/megalogger/megalogger.ino b/megalogger/megalogger.ino
index 83803cc..53b6475 100644
--- a/megalogger/megalogger.ino
+++ b/megalogger/megalogger.ino
@@ -595,7 +595,7 @@ void showECUCap()
if (obd.isValidPID(pid)) {
int value;
lcd.setCursor(280 , n++);
- if (obd.read(pid, value)) {
+ if (obd.readPID(pid, value)) {
if (!scanned || value == values[i])
lcd.setColor(RGB16_CYAN);
else if (value > values[i])
@@ -633,7 +633,7 @@ void reconnect()
continue;
int value;
- if (obd.read(PID_RPM, value))
+ if (obd.readPID(PID_RPM, value))
break;
obd.sleep();
@@ -803,7 +803,7 @@ void loop()
int values[sizeof(pids)] = {0};
uint32_t pidTime = millis();
// read multiple OBD-II PIDs
- byte results = obd.read(pids, sizeof(pids), values);
+ byte results = obd.readPID(pids, sizeof(pids), values);
pidTime = millis() - pidTime;
if (results == sizeof(pids)) {
for (byte n = 0; n < sizeof(pids); n++) {
@@ -814,7 +814,7 @@ void loop()
// check validation and read a single OBD-II PID
if (obd.isValidPID(pid)) {
int value;
- if (obd.read(pid, value)) {
+ if (obd.readPID(pid, value)) {
logOBDData(pid, value);
}
}