diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-09 13:07:02 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-09 13:07:02 +1200 |
commit | 70d22de4205aec294660378f0d854cbc32c7a6b8 (patch) | |
tree | b425bcf00113b3d8bb65ba160a7723f66e12a977 /src/org/traccar/protocol/Gt06ProtocolDecoder.java | |
parent | 32c836e90bd75e68cac1d704b048a3c4ff22775f (diff) | |
download | trackermap-server-70d22de4205aec294660378f0d854cbc32c7a6b8.tar.gz trackermap-server-70d22de4205aec294660378f0d854cbc32c7a6b8.tar.bz2 trackermap-server-70d22de4205aec294660378f0d854cbc32c7a6b8.zip |
Fix code analytics issues
Diffstat (limited to 'src/org/traccar/protocol/Gt06ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/Gt06ProtocolDecoder.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index 12c9d20b5..ce915fde8 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -271,9 +271,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { } else if (header == 0x7979) { - int length = buf.readUnsignedShort(); - int dataLength = length - 6; - + buf.readUnsignedShort(); // length int type = buf.readUnsignedByte(); if (type == MSG_INFO) { |