From 706ecf21ea5a3cf5214ca36e79a41b69e00bccf0 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Fri, 15 May 2015 17:38:54 +1000 Subject: Update setBaudRate() --- libraries/OBD/OBD.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libraries') diff --git a/libraries/OBD/OBD.cpp b/libraries/OBD/OBD.cpp index b431297..42fa1c5 100644 --- a/libraries/OBD/OBD.cpp +++ b/libraries/OBD/OBD.cpp @@ -403,6 +403,8 @@ bool COBD::setBaudRate(unsigned long baudrate) delay(50); OBDUART.end(); OBDUART.begin(baudrate); + OBDUART.print('ATV\r'); + delay(50); while (available()) read(); return true; } -- cgit v1.2.3