summaryrefslogtreecommitdiff
path: root/megalogger
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
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')
-rw-r--r--megalogger/config.h4
-rw-r--r--megalogger/megalogger.ino8
2 files changed, 6 insertions, 6 deletions
diff --git a/megalogger/config.h b/megalogger/config.h
index 99cf04d..e89f0e3 100644
--- a/megalogger/config.h
+++ b/megalogger/config.h
@@ -59,8 +59,8 @@
/**************************************
* LCD module (uncomment only one)
**************************************/
-LCD_R61581 lcd; /* 3.5" CTE35IPS/R61581 based LCD */
-//LCD_SSD1289 lcd; /* 3.2" SSD12389 based LCD */
+//LCD_R61581 lcd; /* 3.5" CTE35IPS/R61581 based LCD */
+LCD_SSD1289 lcd; /* 3.2" SSD12389 based LCD */
//LCD_ILI9325D lcd; /* 2.8" ILI9325 based LCD */
//LCD_ILI9341 lcd; /* 2.4" ILI9341 based SPI LCD */
//LCD_Null lcd;
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);
}
}