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 /libraries/OBD/examples/obd_i2c_test | |
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 'libraries/OBD/examples/obd_i2c_test')
-rw-r--r-- | libraries/OBD/examples/obd_i2c_test/obd_i2c_test.ino | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/OBD/examples/obd_i2c_test/obd_i2c_test.ino b/libraries/OBD/examples/obd_i2c_test/obd_i2c_test.ino index fe9141a..c5b89fe 100644 --- a/libraries/OBD/examples/obd_i2c_test/obd_i2c_test.ino +++ b/libraries/OBD/examples/obd_i2c_test/obd_i2c_test.ino @@ -74,7 +74,7 @@ void readMEMS() Serial.println(gz); } -void readPID() +void readPIDs() { static const byte pidlist[] = {PID_ENGINE_LOAD, PID_COOLANT_TEMP, PID_RPM, PID_SPEED, PID_TIMING_ADVANCE, PID_INTAKE_TEMP, PID_THROTTLE, PID_FUEL_LEVEL}; Serial.print('['); @@ -87,7 +87,7 @@ void readPID() Serial.print('='); if (valid) { int value; - if (obd.read(pid, value)) { + if (obd.readPID(pid, value)) { Serial.print(value); } } @@ -117,7 +117,7 @@ void setup() { } void loop() { - readPID(); + readPIDs(); readMEMS(); } |