diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-26 13:29:37 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-26 13:29:37 +1300 |
commit | 09b4183fd7ba546209d422d53ea07e273bec26f3 (patch) | |
tree | 529c916e244d634870b0d2f01c51efce0e032889 /src/org/traccar/protocol/TytanProtocolDecoder.java | |
parent | 3e56ea6a99e7da5d61c5956876c2d977268e4756 (diff) | |
download | trackermap-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/TytanProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/TytanProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/TytanProtocolDecoder.java b/src/org/traccar/protocol/TytanProtocolDecoder.java index ec5fb167d..4f5f0027e 100644 --- a/src/org/traccar/protocol/TytanProtocolDecoder.java +++ b/src/org/traccar/protocol/TytanProtocolDecoder.java @@ -83,10 +83,10 @@ public class TytanProtocolDecoder extends BaseProtocolDecoder { position.set("antihijack", buf.readUnsignedByte()); break; case 9: - position.set("authorized", ChannelBufferTools.readHexString(buf, 16)); + position.set("authorized", ChannelBuffers.hexDump(buf.readBytes(8))); break; case 10: - position.set("unauthorized", ChannelBufferTools.readHexString(buf, 16)); + position.set("unauthorized", ChannelBuffers.hexDump(buf.readBytes(8))); break; case 24: Set<Integer> temps = new LinkedHashSet<>(); |