summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2016-06-02 19:51:06 +1000
committerStanley Huang <stanleyhuangyc@gmail.com>2016-06-02 19:51:06 +1000
commit0ed82ae21f68c1ec6a39eca633338273e0f4a453 (patch)
tree16fe37d058dd90541434f978c332b596bfcdab64
parentc91fee0e09eb0386fdd55acdc8080e47a73cee69 (diff)
download2021-arduino-obd-0ed82ae21f68c1ec6a39eca633338273e0f4a453.tar.gz
2021-arduino-obd-0ed82ae21f68c1ec6a39eca633338273e0f4a453.tar.bz2
2021-arduino-obd-0ed82ae21f68c1ec6a39eca633338273e0f4a453.zip
Fixed init() issue with some adapters
-rw-r--r--libraries/OBD/OBD.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/libraries/OBD/OBD.cpp b/libraries/OBD/OBD.cpp
index 2499500..4a83813 100644
--- a/libraries/OBD/OBD.cpp
+++ b/libraries/OBD/OBD.cpp
@@ -351,10 +351,6 @@ bool COBD::init(OBD_PROTOCOLS protocol)
version = (*p - '0') * 10 + (*(p + 2) - '0');
}
}
- if (version == 0) {
- m_state = OBD_FAILED;
- return false;
- }
for (unsigned char i = 0; i < sizeof(initcmd) / sizeof(initcmd[0]); i++) {
#ifdef DEBUG