From: Christopher Peplin Date: Wed, 19 Feb 2014 17:29:35 +0000 (-0500) Subject: Leave payload parsing to applications using this library. X-Git-Tag: 3.99.1~101^2~15 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=57e39cc9e9840f4d17323ce8cfe1a7c20cf2d3a5;p=apps%2Flow-level-can-service.git Leave payload parsing to applications using this library. --- diff --git a/src/uds/uds.c b/src/uds/uds.c index b35e241..1bb9ef8 100644 --- a/src/uds/uds.c +++ b/src/uds/uds.c @@ -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: diff --git a/src/uds/uds.h b/src/uds/uds.h index 3389adf..0d40561 100644 --- a/src/uds/uds.h +++ b/src/uds/uds.h @@ -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 }