summaryrefslogtreecommitdiff
path: root/libraries/OBD/OBD.cpp
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2014-06-28 13:52:24 +1000
committerStanley Huang <stanleyhuangyc@gmail.com>2014-06-28 13:52:24 +1000
commitb849e90fb7212d4499e05546934e23f582af346d (patch)
tree120f11527c4927dede74472400912561040c8c61 /libraries/OBD/OBD.cpp
parent82f6938f17b3afb13e0403c87f3fdef4e2ff180f (diff)
download2021-arduino-obd-b849e90fb7212d4499e05546934e23f582af346d.tar.gz
2021-arduino-obd-b849e90fb7212d4499e05546934e23f582af346d.tar.bz2
2021-arduino-obd-b849e90fb7212d4499e05546934e23f582af346d.zip
Define more OBD-II PIDs
Diffstat (limited to 'libraries/OBD/OBD.cpp')
-rw-r--r--libraries/OBD/OBD.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libraries/OBD/OBD.cpp b/libraries/OBD/OBD.cpp
index 2728a09..85e3ed0 100644
--- a/libraries/OBD/OBD.cpp
+++ b/libraries/OBD/OBD.cpp
@@ -168,6 +168,12 @@ int COBD::normalizeData(byte pid, char* data)
case PID_FUEL_INJECTION_TIMING:
result = ((int32_t)getLargeValue(data) - 26880) / 128;
break;
+ case PID_CATALYST_TEMP_B1S1:
+ case PID_CATALYST_TEMP_B2S1:
+ case PID_CATALYST_TEMP_B1S2:
+ case PID_CATALYST_TEMP_B2S2:
+ result = getLargeValue(data) / 10 - 40;
+ break;
default:
result = getSmallValue(data);
}