diff options
Diffstat (limited to 'src/org/traccar')
-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) { |