aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/AplicomProtocolDecoder.java
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-02-25 21:26:17 -0500
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-04 16:27:02 -0500
commit149317fd5d53566f0902ff627ca3810f2130bbca (patch)
treebb5ee6e1343eac5d102746243af382eecf47f78e /src/org/traccar/protocol/AplicomProtocolDecoder.java
parente46acd56d4db57dfd8010c320cf26bef1f8666c7 (diff)
downloadtrackermap-server-149317fd5d53566f0902ff627ca3810f2130bbca.tar.gz
trackermap-server-149317fd5d53566f0902ff627ca3810f2130bbca.tar.bz2
trackermap-server-149317fd5d53566f0902ff627ca3810f2130bbca.zip
Added Position.KEY_ODOMETER_SERVICE;
Diffstat (limited to 'src/org/traccar/protocol/AplicomProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/AplicomProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AplicomProtocolDecoder.java b/src/org/traccar/protocol/AplicomProtocolDecoder.java
index 24716071c..d80c0337e 100644
--- a/src/org/traccar/protocol/AplicomProtocolDecoder.java
+++ b/src/org/traccar/protocol/AplicomProtocolDecoder.java
@@ -465,7 +465,7 @@ public class AplicomProtocolDecoder extends BaseProtocolDecoder {
} else if (type == 0x06) {
position.set(Position.KEY_ODOMETER, buf.readUnsignedInt() * 5);
position.set(Position.KEY_ODOMETER_TRIP, buf.readUnsignedInt() * 5);
- position.set("serviceDistance", (buf.readUnsignedInt() - 2105540607) * 5);
+ position.set(Position.KEY_ODOMETER_SERVICE, (buf.readUnsignedInt() - 2105540607) * 5);
} else if (type == 0x0A) {
ChannelBuffer brakeData = buf.readBytes(length);
position.set("absStatusCounter", brakeData.readUnsignedShort());