diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-07-04 05:01:07 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-07-04 05:01:07 +1200 |
commit | cdfc5a4881e21903e161782e751007d5b653f393 (patch) | |
tree | 0ae31c908ff5d1a743987ba258e228c0d8da0448 /src | |
parent | ae6d52ee6ae9cf832b5d23c43e40852450d6f4cc (diff) | |
download | trackermap-server-cdfc5a4881e21903e161782e751007d5b653f393.tar.gz trackermap-server-cdfc5a4881e21903e161782e751007d5b653f393.tar.bz2 trackermap-server-cdfc5a4881e21903e161782e751007d5b653f393.zip |
Decode AZ735 command results
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/Gt06ProtocolDecoder.java | 7 |
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) { |