aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-04 05:01:07 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-04 05:01:07 +1200
commitcdfc5a4881e21903e161782e751007d5b653f393 (patch)
tree0ae31c908ff5d1a743987ba258e228c0d8da0448 /src/org
parentae6d52ee6ae9cf832b5d23c43e40852450d6f4cc (diff)
downloadtrackermap-server-cdfc5a4881e21903e161782e751007d5b653f393.tar.gz
trackermap-server-cdfc5a4881e21903e161782e751007d5b653f393.tar.bz2
trackermap-server-cdfc5a4881e21903e161782e751007d5b653f393.zip
Decode AZ735 command results
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
index 261c86825..357256d76 100644
--- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -485,7 +485,12 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
data = buf.readBytes(buf.readableBytes() - 6).toString(StandardCharsets.UTF_16BE);
}
- return decodeLocationString(position, data);
+ if (decodeLocationString(position, data) == null) {
+ getLastLocation(position, null);
+ position.set(Position.KEY_RESULT, data);
+ }
+
+ return position;
} else if (type == MSG_INFO) {