aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-22 10:25:19 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-22 10:25:19 +1300
commit61d7c5ff207e24e5c84bd60bca2c99c44805b393 (patch)
treec6cf4173ab8449ce00fd292ec96ff8784742c9c6 /src/org/traccar/protocol
parent8485dfb37c21ace5e9ef5976a5d747e67d7b9b66 (diff)
downloadtrackermap-server-61d7c5ff207e24e5c84bd60bca2c99c44805b393.tar.gz
trackermap-server-61d7c5ff207e24e5c84bd60bca2c99c44805b393.tar.bz2
trackermap-server-61d7c5ff207e24e5c84bd60bca2c99c44805b393.zip
Decode BCD-coded identifier (fix #1610)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/HuabaoProtocolDecoder.java2
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;
}