From c5a9fdb80df58015c0705d23e2208cb576affd7c Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Wed, 6 Jul 2016 14:57:50 +0800 Subject: Renaming read() to readPID() in OBD library --- megalogger/config.h | 4 ++-- megalogger/megalogger.ino | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'megalogger') 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); } } -- cgit v1.2.3