summaryrefslogtreecommitdiff
path: root/obdlogger/obdlogger.ino
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2013-11-29 23:14:53 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2013-11-29 23:14:53 +1100
commit4b1404387bc14fe4aa92a6f222585ccb35476dbd (patch)
tree6e1048f637b2b1f48cdabfabc5bae9a5adb03978 /obdlogger/obdlogger.ino
parent1a0fb13f2ea621e636d5dfb0ea31ad5e1fc1654b (diff)
download2021-arduino-obd-4b1404387bc14fe4aa92a6f222585ccb35476dbd.tar.gz
2021-arduino-obd-4b1404387bc14fe4aa92a6f222585ccb35476dbd.tar.bz2
2021-arduino-obd-4b1404387bc14fe4aa92a6f222585ccb35476dbd.zip
update OBD logger
Diffstat (limited to 'obdlogger/obdlogger.ino')
-rw-r--r--obdlogger/obdlogger.ino6
1 files changed, 3 insertions, 3 deletions
diff --git a/obdlogger/obdlogger.ino b/obdlogger/obdlogger.ino
index bbd73a4..84fdbeb 100644
--- a/obdlogger/obdlogger.ino
+++ b/obdlogger/obdlogger.ino
@@ -451,7 +451,7 @@ private:
#endif
// send a query to OBD adapter for specified OBD-II pid
- if (readSensor(pid, value)) {
+ if (read(pid, value)) {
dataTime = millis();
showLoggerData(pid, value);
// log data to SD card
@@ -471,7 +471,7 @@ private:
uint16_t n;
int speed;
- if (!readSensor(PID_SPEED, speed))
+ if (!read(PID_SPEED, speed))
return;
dataTime = millis();
@@ -563,7 +563,7 @@ private:
logData(0x100 | PID_SPEED, speed);
// log additional data
int rpm;
- if (readSensor(PID_RPM, rpm)) {
+ if (read(PID_RPM, rpm)) {
dataTime = millis();
logData(0x100 | PID_RPM, rpm);
}