diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-07 20:32:28 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-07 20:32:28 +1300 |
commit | 477375744b788f4ae63cf6cd3812a80b2065a487 (patch) | |
tree | b6caf7109d2129e0fe056b587693d188ee3b38e8 | |
parent | 5ad5fa876da4fefd0e2c8e7e3e2aaab849949742 (diff) | |
download | trackermap-server-477375744b788f4ae63cf6cd3812a80b2065a487.tar.gz trackermap-server-477375744b788f4ae63cf6cd3812a80b2065a487.tar.bz2 trackermap-server-477375744b788f4ae63cf6cd3812a80b2065a487.zip |
Fix Huabao protocol check issues
-rw-r--r-- | src/org/traccar/protocol/HuabaoProtocol.java | 2 | ||||
-rw-r--r-- | src/org/traccar/protocol/HuabaoProtocolDecoder.java | 10 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/org/traccar/protocol/HuabaoProtocol.java b/src/org/traccar/protocol/HuabaoProtocol.java index f6fa6002f..9f41bb8c6 100644 --- a/src/org/traccar/protocol/HuabaoProtocol.java +++ b/src/org/traccar/protocol/HuabaoProtocol.java @@ -17,9 +17,7 @@ package org.traccar.protocol; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.channel.ChannelPipeline; -import org.jboss.netty.handler.codec.string.StringDecoder; import org.traccar.BaseProtocol; -import org.traccar.CharacterDelimiterFrameDecoder; import org.traccar.TrackerServer; import java.util.List; diff --git a/src/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/org/traccar/protocol/HuabaoProtocolDecoder.java index 785922090..931f985a5 100644 --- a/src/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -16,14 +16,8 @@ package org.traccar.protocol; import org.jboss.netty.buffer.ChannelBuffer; -import org.jboss.netty.buffer.ChannelBuffers; import org.jboss.netty.channel.Channel; import org.traccar.BaseProtocolDecoder; -import org.traccar.helper.BitUtil; -import org.traccar.helper.DateBuilder; -import org.traccar.helper.UnitsConverter; -import org.traccar.model.Event; -import org.traccar.model.Position; import java.net.SocketAddress; @@ -42,8 +36,8 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { ChannelBuffer buf = (ChannelBuffer) msg; buf.readUnsignedByte(); // start marker - int type = buf.readUnsignedShort(); - int flags = buf.readUnsignedShort(); + //int type = buf.readUnsignedShort(); + //int flags = buf.readUnsignedShort(); buf.skipBytes(6); // phone number buf.readUnsignedShort(); // index |