summaryrefslogtreecommitdiffstats
path: root/src/uds
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-03-26 10:49:09 -0400
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-03-26 10:49:09 -0400
commit5164a09f1e58bf3225cabf22ae56ad98e516f71c (patch)
tree0485977f9014968fa33b835c10af515e19f2e32e /src/uds
parentbc25d4a2fe7afb9ad96e718071be7e7153572956 (diff)
If an OBD-II PID is unrecognized, return fully parsed payload.
Diffstat (limited to 'src/uds')
-rw-r--r--src/uds/uds.c2
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);
}
}