aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-03-04 16:37:49 -0500
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-04 16:37:49 -0500
commit942a6e42ab3c86b95df64f7c6d4884f4a308bff1 (patch)
treed0b852ea8af7c023a25704c0882e348e918c85ab /src
parent64b173bbd5d8eb001bcf70ad3a5b469d57e7bba7 (diff)
downloadtrackermap-server-942a6e42ab3c86b95df64f7c6d4884f4a308bff1.tar.gz
trackermap-server-942a6e42ab3c86b95df64f7c6d4884f4a308bff1.tar.bz2
trackermap-server-942a6e42ab3c86b95df64f7c6d4884f4a308bff1.zip
Replaced hardcoded "pdop" with Position.KEY_PDOP;
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/GranitProtocolDecoder.java2
-rw-r--r--src/org/traccar/protocol/TotemProtocolDecoder.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/GranitProtocolDecoder.java b/src/org/traccar/protocol/GranitProtocolDecoder.java
index 6e8bc24bf..7518eee1f 100644
--- a/src/org/traccar/protocol/GranitProtocolDecoder.java
+++ b/src/org/traccar/protocol/GranitProtocolDecoder.java
@@ -89,7 +89,7 @@ public class GranitProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_SATELLITES, BitUtil.from(satDel, 4));
int pdop = BitUtil.to(satDel, 4);
- position.set("pdop", pdop);
+ position.set(Position.KEY_PDOP, pdop);
int lonDegrees = buf.readUnsignedByte();
int latDegrees = buf.readUnsignedByte();
diff --git a/src/org/traccar/protocol/TotemProtocolDecoder.java b/src/org/traccar/protocol/TotemProtocolDecoder.java
index f36ef8143..67a1d1213 100644
--- a/src/org/traccar/protocol/TotemProtocolDecoder.java
+++ b/src/org/traccar/protocol/TotemProtocolDecoder.java
@@ -289,7 +289,7 @@ public class TotemProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_SATELLITES, parser.next());
position.setCourse(parser.nextDouble());
position.setSpeed(parser.nextDouble());
- position.set("pdop", parser.next());
+ position.set(Position.KEY_PDOP, parser.next());
position.set(Position.KEY_ODOMETER, parser.nextInt() * 1000);
position.setLatitude(parser.nextCoordinate());