summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2016-01-07 00:04:09 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2016-01-07 00:04:09 +1100
commit1ceaa48c3d54f071239d7a6da40ba78ac747eae5 (patch)
treeda7c1840f0f227c48bfed45133e4bc2bdb48c9fe
parent852b10e7589aca4444adbdc0bd4b5eb1b9bb18ca (diff)
download2021-arduino-obd-1ceaa48c3d54f071239d7a6da40ba78ac747eae5.tar.gz
2021-arduino-obd-1ceaa48c3d54f071239d7a6da40ba78ac747eae5.tar.bz2
2021-arduino-obd-1ceaa48c3d54f071239d7a6da40ba78ac747eae5.zip
Fix VIN parsing issue with KWP2000
-rw-r--r--libraries/OBD/OBD.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/OBD/OBD.cpp b/libraries/OBD/OBD.cpp
index 9015051..e4d546c 100644
--- a/libraries/OBD/OBD.cpp
+++ b/libraries/OBD/OBD.cpp
@@ -239,7 +239,7 @@ float COBD::getVoltage()
bool COBD::getVIN(char* buffer, byte bufsize)
{
if (sendCommand("0902\r", buffer, bufsize)) {
- char *p = strstr(buffer, "0: 49 02");
+ char *p = strstr(buffer, "49 02");
if (p) {
char *q = buffer;
p += 10;