summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2020-03-29 13:29:05 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2020-03-29 13:29:05 +1100
commit5e7e97fe4363e9b371706807d31f79812db4cf68 (patch)
tree3767e9a7b90f0edf5e06acbda4fd683eb01e3af2
parent22c0c5e5482efea9b35a196d8d0945067e450fce (diff)
download2021-arduino-obd-5e7e97fe4363e9b371706807d31f79812db4cf68.tar.gz
2021-arduino-obd-5e7e97fe4363e9b371706807d31f79812db4cf68.tar.bz2
2021-arduino-obd-5e7e97fe4363e9b371706807d31f79812db4cf68.zip
Update OBD2UART.cpp
-rw-r--r--libraries/OBD2UART/OBD2UART.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/OBD2UART/OBD2UART.cpp b/libraries/OBD2UART/OBD2UART.cpp
index 89ca2b1..5f1dbd7 100644
--- a/libraries/OBD2UART/OBD2UART.cpp
+++ b/libraries/OBD2UART/OBD2UART.cpp
@@ -484,7 +484,7 @@ void COBD::end()
bool COBD::setBaudRate(unsigned long baudrate)
{
OBDUART.print("ATBR1 ");
- OBDUART.print(baudrate);
+ OBDUART.print(baudrate, HEX);
OBDUART.print('\r');
delay(50);
OBDUART.end();