From a07593476806ce116e36c51b1350a8c2a5d8513c Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Fri, 13 Jan 2017 10:38:33 +1100 Subject: Improved initialization routine and fixed protocol selection issue --- libraries/OBD/OBD.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libraries/OBD/OBD.h') 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) -- cgit v1.2.3