Code Review
/
apps
/
low-level-can-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
bc25d4a
)
If an OBD-II PID is unrecognized, return fully parsed payload.
author
Christopher Peplin
<chris.peplin@rhubarbtech.com>
Wed, 26 Mar 2014 14:49:09 +0000
(10:49 -0400)
committer
Christopher Peplin
<chris.peplin@rhubarbtech.com>
Wed, 26 Mar 2014 14:49:09 +0000
(10:49 -0400)
src/uds/uds.c
patch
|
blob
|
history
diff --git
a/src/uds/uds.c
b/src/uds/uds.c
index
e0de344
..
ed46b4a
100644
(file)
--- 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)
;
}
}