From 5c4300402d931b2cb53db7214877d9b7e69a8416 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Fri, 29 Nov 2013 23:13:36 +1100 Subject: update OBD-II library --- libraries/OBD/OBD.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libraries/OBD/OBD.h') 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); -- cgit v1.2.3