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.h | |
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.h')
-rw-r--r-- | libraries/OBD/OBD.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/OBD/OBD.h b/libraries/OBD/OBD.h index f64ea35..93856d6 100644 --- a/libraries/OBD/OBD.h +++ b/libraries/OBD/OBD.h @@ -50,7 +50,7 @@ public: COBD():dataMode(1),errors(0),m_state(OBD_DISCONNECTED) {} virtual void begin(); virtual bool init(bool passive = false); - virtual bool readSensor(byte pid, int& result, bool passive = false); + virtual bool read(byte pid, int& result, bool passive = false); virtual void sleep(int seconds); // Query and GetResponse for advanced usage only virtual void sendQuery(byte pid); @@ -118,7 +118,7 @@ class COBDI2C : public COBD { public: void begin(byte addr = I2C_ADDR); bool init(); - bool readSensor(byte pid, int& result, bool passive = false); + bool read(byte pid, int& result, bool passive = false); void write(char* s); // Bluetooth communication API bool btInit(uint16_t baudrate = 9600); |