aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TotemProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-02-26 15:12:08 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-02-26 15:12:08 +1300
commit3302d7cf5e7d776da723b811f7daf7a7bd24bb25 (patch)
tree1cfa8a9394e10aabb7e5f90f9c883a539f309ae1 /src/org/traccar/protocol/TotemProtocolDecoder.java
parentaea5d9e8df58b37c937db87a272a9d92c64586f5 (diff)
downloadtrackermap-server-3302d7cf5e7d776da723b811f7daf7a7bd24bb25.tar.gz
trackermap-server-3302d7cf5e7d776da723b811f7daf7a7bd24bb25.tar.bz2
trackermap-server-3302d7cf5e7d776da723b811f7daf7a7bd24bb25.zip
Some minor clean up
Diffstat (limited to 'src/org/traccar/protocol/TotemProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/TotemProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/TotemProtocolDecoder.java b/src/org/traccar/protocol/TotemProtocolDecoder.java
index 86ee09d95..6a4b2052c 100644
--- a/src/org/traccar/protocol/TotemProtocolDecoder.java
+++ b/src/org/traccar/protocol/TotemProtocolDecoder.java
@@ -244,10 +244,10 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder {
position.setTime(dateBuilder.getDate());
if (pattern == PATTERN1) {
- position.set("pdop", parser.next());
+ position.set(Position.KEY_PDOP, parser.next());
position.set(Position.KEY_HDOP, parser.next());
- position.set("vdop", parser.next());
- } else if (pattern == PATTERN2) {
+ position.set(Position.KEY_VDOP, parser.next());
+ } else {
position.set(Position.KEY_HDOP, parser.next());
}