From 5de64679e196689429149c1fbdf2f79477e94aa2 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Fri, 16 Oct 2015 16:35:09 +1100 Subject: Fix timeout issue on slow vehicle bus --- libraries/OBD/OBD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libraries/OBD/OBD.cpp') 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; } -- cgit v1.2.3