From 4b1404387bc14fe4aa92a6f222585ccb35476dbd Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Fri, 29 Nov 2013 23:14:53 +1100 Subject: update OBD logger --- obdlogger/obdlogger.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'obdlogger') 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); } -- cgit v1.2.3