summaryrefslogtreecommitdiff
path: root/libraries/OBD
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2015-05-15 17:38:54 +1000
committerStanley Huang <stanleyhuangyc@gmail.com>2015-05-15 17:38:54 +1000
commit706ecf21ea5a3cf5214ca36e79a41b69e00bccf0 (patch)
treeae961ca738078ed6e0195bc5a3bdee0f4ec6b072 /libraries/OBD
parent72a7fefb6622b20689a287a683dac51048d78a95 (diff)
download2021-arduino-obd-706ecf21ea5a3cf5214ca36e79a41b69e00bccf0.tar.gz
2021-arduino-obd-706ecf21ea5a3cf5214ca36e79a41b69e00bccf0.tar.bz2
2021-arduino-obd-706ecf21ea5a3cf5214ca36e79a41b69e00bccf0.zip
Update setBaudRate()
Diffstat (limited to 'libraries/OBD')
-rw-r--r--libraries/OBD/OBD.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}