aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/TzoneProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-26 13:29:37 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-26 13:29:37 +1300
commit09b4183fd7ba546209d422d53ea07e273bec26f3 (patch)
tree529c916e244d634870b0d2f01c51efce0e032889 /src/org/traccar/protocol/TzoneProtocolDecoder.java
parent3e56ea6a99e7da5d61c5956876c2d977268e4756 (diff)
downloadtrackermap-server-09b4183fd7ba546209d422d53ea07e273bec26f3.tar.gz
trackermap-server-09b4183fd7ba546209d422d53ea07e273bec26f3.tar.bz2
trackermap-server-09b4183fd7ba546209d422d53ea07e273bec26f3.zip
Use hexDump instead of readHexString
Diffstat (limited to 'src/org/traccar/protocol/TzoneProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/TzoneProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TzoneProtocolDecoder.java b/src/org/traccar/protocol/TzoneProtocolDecoder.java
index c76766fb7..6805708b9 100644
--- a/src/org/traccar/protocol/TzoneProtocolDecoder.java
+++ b/src/org/traccar/protocol/TzoneProtocolDecoder.java
@@ -17,6 +17,7 @@ package org.traccar.protocol;
import java.net.SocketAddress;
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;
@@ -45,7 +46,7 @@ public class TzoneProtocolDecoder extends BaseProtocolDecoder {
buf.readUnsignedShort(); // model
buf.readUnsignedInt(); // firmware
- String imei = ChannelBufferTools.readHexString(buf, 16).substring(1);
+ String imei = ChannelBuffers.hexDump(buf.readBytes(8)).substring(1);
if (!identify(imei, channel)) {
return null;
}