aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-01-03 09:36:23 -0800
committerAnton Tananaev <anton@traccar.org>2023-01-03 09:36:23 -0800
commit046076aeb6f0c79bb59ef9aead4ebbc23e286c63 (patch)
treef353bb2605bba993c1f56f20a324e191e1bcf270 /src/main/java/org
parent2ed386ecd1fa6b51cf3115fe6fe4626ebfceea31 (diff)
downloadtrackermap-server-046076aeb6f0c79bb59ef9aead4ebbc23e286c63.tar.gz
trackermap-server-046076aeb6f0c79bb59ef9aead4ebbc23e286c63.tar.bz2
trackermap-server-046076aeb6f0c79bb59ef9aead4ebbc23e286c63.zip
Handle ZX303 variation
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
index 15588c89b..ef09677bf 100644
--- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -803,7 +803,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
getLastLocation(position, null);
}
- if (hasLbs(type)) {
+ if (hasLbs(type) && buf.readableBytes() > 6) {
decodeLbs(position, buf, type, hasStatus(type) && type != MSG_LBS_ALARM);
}