summaryrefslogtreecommitdiff
path: root/libraries/OBD/examples/rpm_led_i2c
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/OBD/examples/rpm_led_i2c')
-rw-r--r--libraries/OBD/examples/rpm_led_i2c/rpm_led_i2c.ino2
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);