summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/OBD/OBD.cpp2
-rw-r--r--libraries/OBD/OBD.h4
2 files changed, 3 insertions, 3 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;
}
diff --git a/libraries/OBD/OBD.h b/libraries/OBD/OBD.h
index 90944e9..e5ca2f9 100644
--- a/libraries/OBD/OBD.h
+++ b/libraries/OBD/OBD.h
@@ -10,8 +10,8 @@
#define OBD_MODEL_UART 0
#define OBD_MODEL_I2C 1
-#define OBD_TIMEOUT_SHORT 2000 /* ms */
-#define OBD_TIMEOUT_LONG 7000 /* ms */
+#define OBD_TIMEOUT_SHORT 1000 /* ms */
+#define OBD_TIMEOUT_LONG 10000 /* ms */
#define OBD_TIMEOUT_GPS 200 /* ms */
#define OBD_SERIAL_BAUDRATE 38400
#define OBD_RECV_BUF_SIZE 128