If an OBD-II PID is unrecognized, return fully parsed payload.
authorChristopher Peplin <chris.peplin@rhubarbtech.com>
Wed, 26 Mar 2014 14:49:09 +0000 (10:49 -0400)
committerChristopher Peplin <chris.peplin@rhubarbtech.com>
Wed, 26 Mar 2014 14:49:09 +0000 (10:49 -0400)
src/uds/uds.c

index e0de344..ed46b4a 100644 (file)
@@ -307,7 +307,7 @@ float diagnostic_decode_obd2_pid(const DiagnosticResponse* response) {
         case 0x62:
             return response->payload[0] - 125;
         default:
-            return 0;
+            return diagnostic_payload_to_integer(response);
     }
 }