summaryrefslogtreecommitdiff
path: root/libraries/OBD/OBD.h
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.h
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.h')
-rw-r--r--libraries/OBD/OBD.h4
1 files changed, 2 insertions, 2 deletions
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