diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2015-05-15 17:38:54 +1000 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2015-05-15 17:38:54 +1000 |
commit | 706ecf21ea5a3cf5214ca36e79a41b69e00bccf0 (patch) | |
tree | ae961ca738078ed6e0195bc5a3bdee0f4ec6b072 | |
parent | 72a7fefb6622b20689a287a683dac51048d78a95 (diff) | |
download | 2021-arduino-obd-706ecf21ea5a3cf5214ca36e79a41b69e00bccf0.tar.gz 2021-arduino-obd-706ecf21ea5a3cf5214ca36e79a41b69e00bccf0.tar.bz2 2021-arduino-obd-706ecf21ea5a3cf5214ca36e79a41b69e00bccf0.zip |
Update setBaudRate()
-rw-r--r-- | libraries/OBD/OBD.cpp | 2 |
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; } |