summaryrefslogtreecommitdiff
path: root/libraries/OBD/OBD.cpp
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2015-10-16 16:35:09 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2015-10-16 16:35:09 +1100
commit5de64679e196689429149c1fbdf2f79477e94aa2 (patch)
treeb42a2974e0fb1924c8430ef7dbe77faa8786c8c1 /libraries/OBD/OBD.cpp
parent3ad28dfcd32482706e753af8eae34ab5c8562fcb (diff)
download2021-arduino-obd-5de64679e196689429149c1fbdf2f79477e94aa2.tar.gz
2021-arduino-obd-5de64679e196689429149c1fbdf2f79477e94aa2.tar.bz2
2021-arduino-obd-5de64679e196689429149c1fbdf2f79477e94aa2.zip
Fix timeout issue on slow vehicle bus
Diffstat (limited to 'libraries/OBD/OBD.cpp')
-rw-r--r--libraries/OBD/OBD.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/OBD/OBD.cpp b/libraries/OBD/OBD.cpp
index 4242cf3..2689498 100644
--- a/libraries/OBD/OBD.cpp
+++ b/libraries/OBD/OBD.cpp
@@ -347,7 +347,7 @@ bool COBD::init(OBD_PROTOCOLS protocol)
debugOutput(initcmd[i]);
#endif
write(initcmd[i]);
- if (receive(buffer) == 0) {
+ if (receive(buffer, OBD_TIMEOUT_LONG) == 0) {
m_state = OBD_DISCONNECTED;
return false;
}