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/rpm_led_i2c | |
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/rpm_led_i2c')
-rw-r--r-- | libraries/OBD/examples/rpm_led_i2c/rpm_led_i2c.ino | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/OBD/examples/rpm_led_i2c/rpm_led_i2c.ino b/libraries/OBD/examples/rpm_led_i2c/rpm_led_i2c.ino index d999159..619ae32 100644 --- a/libraries/OBD/examples/rpm_led_i2c/rpm_led_i2c.ino +++ b/libraries/OBD/examples/rpm_led_i2c/rpm_led_i2c.ino @@ -24,7 +24,7 @@ void setup() void loop() { int value; - if (obd.read(PID_RPM, value)) { + if (obd.readPID(PID_RPM, value)) { // RPM is successfully read and its value stored in variable 'value' // light on LED when RPM exceeds 3000 digitalWrite(13, value > 3000 ? HIGH : LOW); |