diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2017-01-13 10:38:33 +1100 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2017-01-13 10:38:33 +1100 |
commit | a07593476806ce116e36c51b1350a8c2a5d8513c (patch) | |
tree | 31e8fa4d293b029d132f5e02e971bda9a51a7688 /libraries/OBD/OBD.h | |
parent | e93e7a6a3b66632209d2883af99d6f5086d24fbd (diff) | |
download | 2021-arduino-obd-a07593476806ce116e36c51b1350a8c2a5d8513c.tar.gz 2021-arduino-obd-a07593476806ce116e36c51b1350a8c2a5d8513c.tar.bz2 2021-arduino-obd-a07593476806ce116e36c51b1350a8c2a5d8513c.zip |
Improved initialization routine and fixed protocol selection issue
Diffstat (limited to 'libraries/OBD/OBD.h')
-rw-r--r-- | libraries/OBD/OBD.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libraries/OBD/OBD.h b/libraries/OBD/OBD.h index b6793d7..2e8404f 100644 --- a/libraries/OBD/OBD.h +++ b/libraries/OBD/OBD.h @@ -11,7 +11,7 @@ #define OBD_MODEL_I2C 1
#define OBD_TIMEOUT_SHORT 1000 /* ms */
-#define OBD_TIMEOUT_LONG 15000 /* ms */
+#define OBD_TIMEOUT_LONG 5000 /* ms */
#define OBD_TIMEOUT_GPS 200 /* ms */
#define OBD_SERIAL_BAUDRATE 38400
@@ -118,8 +118,6 @@ public: virtual byte readPID(const byte pid[], byte count, int result[]);
// set device into
virtual void sleep();
- // set working protocol (default auto)
- virtual bool setProtocol(OBD_PROTOCOLS h = PROTO_AUTO);
// send AT command and receive response
virtual byte sendCommand(const char* cmd, char* buf, byte bufsize, int timeout = OBD_TIMEOUT_LONG);
// read diagnostic trouble codes (return number of DTCs read)
|