diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-11-29 23:13:36 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-11-29 23:13:36 +1100 |
commit | 5c4300402d931b2cb53db7214877d9b7e69a8416 (patch) | |
tree | f36dcf46b5d0459073a656368899eac0f76b247d /libraries/OBD/OBD.cpp | |
parent | 94ddea4cfac60df45f48db3b25b0d9c62c066d94 (diff) | |
download | 2021-arduino-obd-5c4300402d931b2cb53db7214877d9b7e69a8416.tar.gz 2021-arduino-obd-5c4300402d931b2cb53db7214877d9b7e69a8416.tar.bz2 2021-arduino-obd-5c4300402d931b2cb53db7214877d9b7e69a8416.zip |
update OBD-II library
Diffstat (limited to 'libraries/OBD/OBD.cpp')
-rw-r--r-- | libraries/OBD/OBD.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/OBD/OBD.cpp b/libraries/OBD/OBD.cpp index 5dcf903..3360d07 100644 --- a/libraries/OBD/OBD.cpp +++ b/libraries/OBD/OBD.cpp @@ -75,7 +75,7 @@ void COBD::sendQuery(unsigned char pid) write(cmd); } -bool COBD::readSensor(byte pid, int& result, bool passive) +bool COBD::read(byte pid, int& result, bool passive) { // send a query command sendQuery(pid); @@ -341,7 +341,7 @@ bool COBDI2C::init() } } -bool COBDI2C::readSensor(byte pid, int& result, bool passive) +bool COBDI2C::read(byte pid, int& result, bool passive) { uint32_t t = millis(); sendQuery(pid); |