aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-07 20:32:28 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-07 20:32:28 +1300
commit477375744b788f4ae63cf6cd3812a80b2065a487 (patch)
treeb6caf7109d2129e0fe056b587693d188ee3b38e8 /src/org/traccar/protocol
parent5ad5fa876da4fefd0e2c8e7e3e2aaab849949742 (diff)
downloadtrackermap-server-477375744b788f4ae63cf6cd3812a80b2065a487.tar.gz
trackermap-server-477375744b788f4ae63cf6cd3812a80b2065a487.tar.bz2
trackermap-server-477375744b788f4ae63cf6cd3812a80b2065a487.zip
Fix Huabao protocol check issues
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/HuabaoProtocol.java2
-rw-r--r--src/org/traccar/protocol/HuabaoProtocolDecoder.java10
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