From 5e7e97fe4363e9b371706807d31f79812db4cf68 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Sun, 29 Mar 2020 13:29:05 +1100 Subject: Update OBD2UART.cpp --- libraries/OBD2UART/OBD2UART.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3