summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2017-02-16 20:39:51 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2017-02-16 20:39:51 +1100
commit33a7b016dea7679fd319eb94baca680a5117f3e4 (patch)
tree549ea0359665f28908d87faf80482afd7b94de5f
parentf5c7e17facba472b39b61f3846632e23e727b164 (diff)
download2021-arduino-obd-33a7b016dea7679fd319eb94baca680a5117f3e4.tar.gz
2021-arduino-obd-33a7b016dea7679fd319eb94baca680a5117f3e4.tar.bz2
2021-arduino-obd-33a7b016dea7679fd319eb94baca680a5117f3e4.zip
Fixed compile issue
-rw-r--r--libraries/OBD/OBD.cpp7
-rw-r--r--libraries/OBD/OBD.h1
2 files changed, 0 insertions, 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; }