diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-11-29 23:15:11 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-11-29 23:15:11 +1100 |
commit | 6160e574d95fdbd1c83d40700112ff9a892f3add (patch) | |
tree | 0bbc69b2254fad0e7dc304c369cd454fa3c0ac7c /samples | |
parent | 4b1404387bc14fe4aa92a6f222585ccb35476dbd (diff) | |
download | 2021-arduino-obd-6160e574d95fdbd1c83d40700112ff9a892f3add.tar.gz 2021-arduino-obd-6160e574d95fdbd1c83d40700112ff9a892f3add.tar.bz2 2021-arduino-obd-6160e574d95fdbd1c83d40700112ff9a892f3add.zip |
update sample sketches
Diffstat (limited to 'samples')
-rw-r--r-- | samples/dashboard_1602/dashboard_1602.ino | 2 | ||||
-rw-r--r-- | samples/dashboard_4884/dashboard_4884.ino | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/samples/dashboard_1602/dashboard_1602.ino b/samples/dashboard_1602/dashboard_1602.ino index 848800e..6fb94b0 100644 --- a/samples/dashboard_1602/dashboard_1602.ino +++ b/samples/dashboard_1602/dashboard_1602.ino @@ -73,7 +73,7 @@ bool showData(int index) uint8_t mode = modes[index]; uint8_t pid = modePids[mode]; digitalWrite(13, HIGH); // set the LED on - if (!obd.readSensor(pid, value)) { + if (!obd.read(pid, value)) { // display received data on error lcd.cursorTo(index + 1, 0); lcd.printIn("Error"); diff --git a/samples/dashboard_4884/dashboard_4884.ino b/samples/dashboard_4884/dashboard_4884.ino index 6f845e2..044ef67 100644 --- a/samples/dashboard_4884/dashboard_4884.ino +++ b/samples/dashboard_4884/dashboard_4884.ino @@ -174,7 +174,7 @@ public: lcd.LCD_write_string(0, 1, "Wait ECU start", MENU_NORMAL); do { delay(1000); - } while (!readSensor(PID_RPM, value)); + } while (!read(PID_RPM, value)); lcd.LCD_write_string(0, 2, "ECU started ", MENU_NORMAL); lcd.LCD_write_string(0, 3, "Wait ignition ", MENU_NORMAL); do { |