diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-03-26 10:49:09 -0400 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-03-26 10:49:09 -0400 |
commit | 5164a09f1e58bf3225cabf22ae56ad98e516f71c (patch) | |
tree | 0485977f9014968fa33b835c10af515e19f2e32e /src/uds | |
parent | bc25d4a2fe7afb9ad96e718071be7e7153572956 (diff) |
If an OBD-II PID is unrecognized, return fully parsed payload.
Diffstat (limited to 'src/uds')
-rw-r--r-- | src/uds/uds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uds/uds.c b/src/uds/uds.c index e0de344d..ed46b4a9 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); } } |