aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/Gt06ProtocolEncoder.java
diff options
context:
space:
mode:
authorEdward Valley <ed.valley@yandex.com>2019-07-18 09:05:09 -0400
committerEdward Valley <ed.valley@yandex.com>2019-07-18 09:05:09 -0400
commitf4bef0008fc6b2562a29017e6eb4272734943311 (patch)
treea24039c2610bcb59f0af18b6e534787828185abd /src/main/java/org/traccar/protocol/Gt06ProtocolEncoder.java
parent9c29c360431d2f7a197e224ed587925675b6bcf7 (diff)
downloadtrackermap-server-f4bef0008fc6b2562a29017e6eb4272734943311.tar.gz
trackermap-server-f4bef0008fc6b2562a29017e6eb4272734943311.tar.bz2
trackermap-server-f4bef0008fc6b2562a29017e6eb4272734943311.zip
Changes after second review
Diffstat (limited to 'src/main/java/org/traccar/protocol/Gt06ProtocolEncoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/Gt06ProtocolEncoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolEncoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolEncoder.java
index 2fb18d2a2..bbc5e02d8 100644
--- a/src/main/java/org/traccar/protocol/Gt06ProtocolEncoder.java
+++ b/src/main/java/org/traccar/protocol/Gt06ProtocolEncoder.java
@@ -33,7 +33,8 @@ public class Gt06ProtocolEncoder extends BaseProtocolEncoder {
private ByteBuf encodeContent(long deviceId, String content) {
- boolean language = Context.getIdentityManager().lookupAttributeBoolean(deviceId, "gt06.language", false, true);
+ boolean language = Context.getIdentityManager()
+ .lookupAttributeBoolean(deviceId, "gt06.language", false, false, true);
ByteBuf buf = Unpooled.buffer();
@@ -66,7 +67,7 @@ public class Gt06ProtocolEncoder extends BaseProtocolEncoder {
protected Object encodeCommand(Command command) {
boolean alternative = Context.getIdentityManager().lookupAttributeBoolean(
- command.getDeviceId(), "gt06.alternative", false, true);
+ command.getDeviceId(), "gt06.alternative", false, false, true);
switch (command.getType()) {
case Command.TYPE_ENGINE_STOP: