From: Christopher Peplin Date: Wed, 26 Mar 2014 14:49:09 +0000 (-0400) Subject: If an OBD-II PID is unrecognized, return fully parsed payload. X-Git-Tag: 3.99.1~101^2~7 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=5164a09f1e58bf3225cabf22ae56ad98e516f71c;p=apps%2Flow-level-can-service.git If an OBD-II PID is unrecognized, return fully parsed payload. --- 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); } }