fix battery voltage in obd2
authorKevron Rees <tripzero.kev@gmail.com>
Thu, 9 May 2013 22:24:35 +0000 (15:24 -0700)
committerKevron Rees <tripzero.kev@gmail.com>
Thu, 9 May 2013 22:24:35 +0000 (15:24 -0700)
plugins/obd2plugin/obdpid.h

index 9caccc9..0731063 100644 (file)
@@ -435,7 +435,7 @@ public:
 
        bool isValid(ByteArray replyVector)
        {
-               ByteArray tmp = compress(cleanup(replyVector));
+               ByteArray tmp = cleanup(replyVector);
                if(tmp[tmp.size() - 1] == 'V')
                {
                        return isValidVal = true;
@@ -444,11 +444,11 @@ public:
        }
        void parse(ByteArray replyVector)
        {
-               ByteArray tmp = compress(cleanup(replyVector));
+               ByteArray tmp = cleanup(replyVector);
                value = "";
                for(int i=0; i<tmp.size() - 1; i++)
                {
-                       value+= tmp[i];
+                       value += tmp[i];
                }
        }