diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-22 10:25:19 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-22 10:25:19 +1300 |
commit | 61d7c5ff207e24e5c84bd60bca2c99c44805b393 (patch) | |
tree | c6cf4173ab8449ce00fd292ec96ff8784742c9c6 /src/org | |
parent | 8485dfb37c21ace5e9ef5976a5d747e67d7b9b66 (diff) | |
download | trackermap-server-61d7c5ff207e24e5c84bd60bca2c99c44805b393.tar.gz trackermap-server-61d7c5ff207e24e5c84bd60bca2c99c44805b393.tar.bz2 trackermap-server-61d7c5ff207e24e5c84bd60bca2c99c44805b393.zip |
Decode BCD-coded identifier (fix #1610)
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/HuabaoProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/org/traccar/protocol/HuabaoProtocolDecoder.java index 792c89c8b..a9a4741fc 100644 --- a/src/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -82,7 +82,7 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { ChannelBuffer id = buf.readBytes(6); // phone number int index = buf.readUnsignedShort(); - if (!identify(id.toString(Charset.defaultCharset()), channel, remoteAddress)) { + if (!identify(ChannelBuffers.hexDump(id), channel, remoteAddress)) { return null; } |