aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-08-13 07:44:29 -0700
committerAnton Tananaev <anton@traccar.org>2023-08-13 07:44:36 -0700
commit08a3f9c4530d072a224037eaa8683195c4233f84 (patch)
treea417f2c0148dc7b2bd80c8b5658bfda313e8c656 /src/main/java/org/traccar/protocol
parent5a9313a13dcf9a7c47f95086e56def99297405f9 (diff)
downloadtrackermap-server-08a3f9c4530d072a224037eaa8683195c4233f84.tar.gz
trackermap-server-08a3f9c4530d072a224037eaa8683195c4233f84.tar.bz2
trackermap-server-08a3f9c4530d072a224037eaa8683195c4233f84.zip
Support SL22 SL24 SL28 devices
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-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 53c812bb7..56a915e7d 100644
--- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -916,7 +916,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
}
}
- if (type == MSG_GPS_LBS_7) {
+ if (buf.readableBytes() == 3 + 6 || buf.readableBytes() == 3 + 4 + 6) {
position.set(Position.KEY_IGNITION, buf.readUnsignedByte() > 0);
buf.readUnsignedByte(); // upload mode
position.set(Position.KEY_ARCHIVE, buf.readUnsignedByte() > 0 ? true : null);