diff options
author | Stanley Huang <stanleyhuangyc@live.com> | 2016-07-06 14:57:50 +0800 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@live.com> | 2016-07-06 14:57:50 +0800 |
commit | c5a9fdb80df58015c0705d23e2208cb576affd7c (patch) | |
tree | 9bc8b7957dea05f3130da6821e65fed441802892 /tester | |
parent | 23ea91258a34ab568c5dd2878f2eaa8a0dec6fe7 (diff) | |
download | 2021-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 'tester')
-rw-r--r-- | tester/tester.ino | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tester/tester.ino b/tester/tester.ino index 8e141ad..2ec1bf9 100644 --- a/tester/tester.ino +++ b/tester/tester.ino @@ -200,7 +200,7 @@ bool checkSD() const byte pids[]= {PID_RPM, PID_SPEED, PID_THROTTLE, PID_ENGINE_LOAD}; int values[sizeof(pids)]; // read multiple OBD-II PIDs - if (read(pids, sizeof(pids), values) == sizeof(pids)) { + if (readPID(pids, sizeof(pids), values) == sizeof(pids)) { dataTime = millis(); for (byte n = 0; n < sizeof(pids); n++) { logData((uint16_t)pids[n] | 0x100, values[n]); @@ -215,7 +215,7 @@ bool checkSD() int value; byte pid = pids2[index2 = (index2 + 1) % (sizeof(pids2))]; // read single OBD-II PID - if (isValidPID(pid) && read(pid, value)) { + if (isValidPID(pid) && readPID(pid, value)) { dataTime = millis(); logData((uint16_t)pid | 0x100, value); lastSec = sec; |