aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-05 04:53:34 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-05 04:53:34 +1200
commitd5dfbc2b8b70209e40231f5da27809548b4c8853 (patch)
treec99a47f77c16ac287ddb6e6c9a0f8584a64c5b12 /src/org/traccar/helper
parentcdfc5a4881e21903e161782e751007d5b653f393 (diff)
downloadtrackermap-server-d5dfbc2b8b70209e40231f5da27809548b4c8853.tar.gz
trackermap-server-d5dfbc2b8b70209e40231f5da27809548b4c8853.tar.bz2
trackermap-server-d5dfbc2b8b70209e40231f5da27809548b4c8853.zip
Add new attribute keys (fix #3313)
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/ObdDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/helper/ObdDecoder.java b/src/org/traccar/helper/ObdDecoder.java
index f2c269f47..4bc3bcdfb 100644
--- a/src/org/traccar/helper/ObdDecoder.java
+++ b/src/org/traccar/helper/ObdDecoder.java
@@ -87,15 +87,15 @@ public final class ObdDecoder {
public static Map.Entry<String, Object> decodeData(int pid, int value, boolean convert) {
switch (pid) {
case PID_ENGINE_LOAD:
- return createEntry("engineLoad", convert ? value * 100 / 255 : value);
+ return createEntry(Position.KEY_ENGINE_LOAD, convert ? value * 100 / 255 : value);
case PID_COOLANT_TEMPERATURE:
- return createEntry("coolantTemperature", convert ? value - 40 : value);
+ return createEntry(Position.KEY_COOLANT_TEMP, convert ? value - 40 : value);
case PID_ENGINE_RPM:
return createEntry(Position.KEY_RPM, convert ? value / 4 : value);
case PID_VEHICLE_SPEED:
return createEntry(Position.KEY_OBD_SPEED, value);
case PID_THROTTLE_POSITION:
- return createEntry("throttle", convert ? value * 100 / 255 : value);
+ return createEntry(Position.KEY_THROTTLE, convert ? value * 100 / 255 : value);
case PID_MIL_DISTANCE:
return createEntry("milDistance", value);
case PID_FUEL_LEVEL: