aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gt06ProtocolDecoder.java
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-03-04 17:15:40 -0500
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-04 17:17:44 -0500
commit525db3566a9e17f626d34e498c85e02d382d6655 (patch)
tree4fd160372e81e76e775253b038d8e3056e0891dd /src/org/traccar/protocol/Gt06ProtocolDecoder.java
parentaa1668df74c2d3c9a5d624d571f95bc110ad5414 (diff)
downloadtrackermap-server-525db3566a9e17f626d34e498c85e02d382d6655.tar.gz
trackermap-server-525db3566a9e17f626d34e498c85e02d382d6655.tar.bz2
trackermap-server-525db3566a9e17f626d34e498c85e02d382d6655.zip
Added Position.KEY_COMMAND;
Diffstat (limited to 'src/org/traccar/protocol/Gt06ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
index 356097fb2..bbba639c1 100644
--- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -264,7 +264,8 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
if (commandLength > 0) {
buf.readUnsignedByte(); // server flag (reserved)
- position.set("command", buf.readBytes(commandLength - 1).toString(StandardCharsets.US_ASCII));
+ position.set(Position.KEY_COMMAND,
+ buf.readBytes(commandLength - 1).toString(StandardCharsets.US_ASCII));
}
} else if (isSupported(type)) {