From 1ceaa48c3d54f071239d7a6da40ba78ac747eae5 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Thu, 7 Jan 2016 00:04:09 +1100 Subject: Fix VIN parsing issue with KWP2000 --- libraries/OBD/OBD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3