From 5164a09f1e58bf3225cabf22ae56ad98e516f71c Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Wed, 26 Mar 2014 10:49:09 -0400 Subject: If an OBD-II PID is unrecognized, return fully parsed payload. --- src/uds/uds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/uds') diff --git a/src/uds/uds.c b/src/uds/uds.c index e0de344..ed46b4a 100644 --- a/src/uds/uds.c +++ b/src/uds/uds.c @@ -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); } } -- cgit 1.2.3-korg