From 33a7b016dea7679fd319eb94baca680a5117f3e4 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Thu, 16 Feb 2017 20:39:51 +1100 Subject: Fixed compile issue --- libraries/OBD/OBD.cpp | 7 ------- libraries/OBD/OBD.h | 1 - 2 files changed, 8 deletions(-) diff --git a/libraries/OBD/OBD.cpp b/libraries/OBD/OBD.cpp index 2dbede8..38b782e 100644 --- a/libraries/OBD/OBD.cpp +++ b/libraries/OBD/OBD.cpp @@ -539,13 +539,6 @@ void COBDI2C::end() m_state = OBD_DISCONNECTED; } -bool COBDI2C::readPID(byte pid, int& result) -{ - sendQuery(pid); - dataIdleLoop(); - return getResult(pid, result); -} - void COBDI2C::write(const char* s) { COMMAND_BLOCK cmdblock = {millis(), CMD_SEND_AT_COMMAND}; diff --git a/libraries/OBD/OBD.h b/libraries/OBD/OBD.h index f106e41..73607c7 100644 --- a/libraries/OBD/OBD.h +++ b/libraries/OBD/OBD.h @@ -201,7 +201,6 @@ class COBDI2C : public COBD { public: byte begin(); void end(); - bool readPID(byte pid, int& result); void write(const char* s); // API not applicable bool setBaudRate(unsigned long baudrate) { return false; } -- cgit v1.2.3