Leave payload parsing to applications using this library.
authorChristopher Peplin <chris.peplin@rhubarbtech.com>
Wed, 19 Feb 2014 17:29:35 +0000 (12:29 -0500)
committerChristopher Peplin <chris.peplin@rhubarbtech.com>
Wed, 19 Feb 2014 17:29:35 +0000 (12:29 -0500)
src/uds/uds.c
src/uds/uds.h

index b35e241..1bb9ef8 100644 (file)
@@ -268,8 +268,7 @@ int diagnostic_payload_to_integer(const DiagnosticResponse* response) {
             response->payload_length * CHAR_BIT);
 }
 
-float diagnostic_decode_obd2_pid(const DiagnosticResponse* response,
-        int parsed_payload) {
+float diagnostic_decode_obd2_pid(const DiagnosticResponse* response) {
     // handles on the single number values, not the bit encoded ones
     switch(response->pid) {
         case 0xa:
index 3389adf..0d40561 100644 (file)
@@ -117,8 +117,7 @@ void diagnostic_request_to_string(const DiagnosticRequest* request,
  * Returns the translated value or 0 if the PID is not in the OBD-II standard or
  * does not use a numerical value (e.g. VIN).
  */
-float diagnostic_decode_obd2_pid(const DiagnosticResponse* response,
-                int parsed_payload);
+float diagnostic_decode_obd2_pid(const DiagnosticResponse* response);
 
 #ifdef __cplusplus
 }