From 80112f02d05aed34035534b342b320854d445cba Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Sun, 26 Jun 2016 20:07:52 +0800 Subject: Minor updates --- libraries/OBD/OBD.cpp | 2 +- libraries/OBD/OBD.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libraries') diff --git a/libraries/OBD/OBD.cpp b/libraries/OBD/OBD.cpp index 4a83813..162ca85 100644 --- a/libraries/OBD/OBD.cpp +++ b/libraries/OBD/OBD.cpp @@ -88,7 +88,7 @@ byte COBD::read(const byte pid[], byte count, int result[]) char *p = buffer; byte results = 0; for (byte n = 0; n < count; n++) { - p += sprintf(p, "%02X%02X\r\n", dataMode, pid[n]); + p += sprintf(p, "%02X%02X\r", dataMode, pid[n]); } write(buffer); // receive and parse the response diff --git a/libraries/OBD/OBD.h b/libraries/OBD/OBD.h index ba10631..8e8185e 100644 --- a/libraries/OBD/OBD.h +++ b/libraries/OBD/OBD.h @@ -124,7 +124,7 @@ public: virtual byte sendCommand(const char* cmd, char* buf, byte bufsize, int timeout = OBD_TIMEOUT_LONG); // clear diagnostic trouble code virtual void clearDTC(); - // get battery voltage (in 0.1V, e.g. 125 for 12.5V, works without ECU) + // get battery voltage (works without ECU) virtual float getVoltage(); // get VIN as a string, buffer length should be >= OBD_RECV_BUF_SIZE virtual bool getVIN(char* buffer, byte bufsize); -- cgit v1.2.3