diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-02-19 12:29:35 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-02-19 12:29:35 -0500 |
commit | 57e39cc9e9840f4d17323ce8cfe1a7c20cf2d3a5 (patch) | |
tree | 60c6015e2d83bfea05556dec8c32e9c8ed90d489 /src | |
parent | 96160fc20d2c939e73773f3fbec2f2fd9482dcf4 (diff) |
Leave payload parsing to applications using this library.
Diffstat (limited to 'src')
-rw-r--r-- | src/uds/uds.c | 3 | ||||
-rw-r--r-- | 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 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 } |