aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-08-12 17:11:56 -0700
committerAnton Tananaev <anton@traccar.org>2022-08-12 17:11:56 -0700
commit8cb215e3426f948802f82cbd22dfddcac45d5ef0 (patch)
treea56a44e4ef40da985d583f93ee4a322ee353d855
parentd8607eb0e840df9df7006f7ae2a15b8b082bf7bf (diff)
downloadtrackermap-server-8cb215e3426f948802f82cbd22dfddcac45d5ef0.tar.gz
trackermap-server-8cb215e3426f948802f82cbd22dfddcac45d5ef0.tar.bz2
trackermap-server-8cb215e3426f948802f82cbd22dfddcac45d5ef0.zip
Use GT06 declared types
-rw-r--r--src/main/java/org/traccar/protocol/Gt06ProtocolEncoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolEncoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolEncoder.java
index e1c17710b..6b2cd6833 100644
--- a/src/main/java/org/traccar/protocol/Gt06ProtocolEncoder.java
+++ b/src/main/java/org/traccar/protocol/Gt06ProtocolEncoder.java
@@ -44,7 +44,7 @@ public class Gt06ProtocolEncoder extends BaseProtocolEncoder {
buf.writeByte(1 + 1 + 4 + content.length() + 2 + 2 + (language ? 2 : 0)); // message length
- buf.writeByte(0x80); // message type
+ buf.writeByte(Gt06ProtocolDecoder.MSG_COMMAND_0);
buf.writeByte(4 + content.length()); // command length
buf.writeInt(0);