summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@live.com>2016-06-26 20:07:52 +0800
committerStanley Huang <stanleyhuangyc@live.com>2016-06-26 20:07:52 +0800
commit80112f02d05aed34035534b342b320854d445cba (patch)
tree4ebf5a4788fdc6b3db2224191d918ce66a723ade
parentcbefe9f23805c0b8f333cf9659e36ef58146418c (diff)
download2021-arduino-obd-80112f02d05aed34035534b342b320854d445cba.tar.gz
2021-arduino-obd-80112f02d05aed34035534b342b320854d445cba.tar.bz2
2021-arduino-obd-80112f02d05aed34035534b342b320854d445cba.zip
Minor updates
-rw-r--r--libraries/OBD/OBD.cpp2
-rw-r--r--libraries/OBD/OBD.h2
2 files changed, 2 insertions, 2 deletions
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);