From 57e39cc9e9840f4d17323ce8cfe1a7c20cf2d3a5 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Wed, 19 Feb 2014 12:29:35 -0500 Subject: [PATCH] Leave payload parsing to applications using this library. --- src/uds/uds.c | 3 +-- src/uds/uds.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/uds/uds.c b/src/uds/uds.c index b35e2416..1bb9ef81 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 3389adff..0d40561a 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 } -- 2.16.6