aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
index 47c422907..b313802b3 100644
--- a/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -1143,7 +1143,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
sendResponse(channel, true, type, buf.getShort(buf.writerIndex() - 6), null);
- return decodeExtendedModular(channel, buf, deviceSession);
+ return decodeExtendedModular(buf, deviceSession);
} else {
@@ -1154,7 +1154,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
return null;
}
- private Object decodeExtendedModular(Channel channel, ByteBuf buf, DeviceSession deviceSession) {
+ private Object decodeExtendedModular(ByteBuf buf, DeviceSession deviceSession) {
Position position = new Position(getProtocolName());
position.setDeviceId(deviceSession.getDeviceId());
@@ -1255,8 +1255,6 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
}
}
- sendResponse(channel, true, MSG_GPS_MODULAR, buf.readUnsignedShort(), null);
-
return position;
}