aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-08-26 19:33:53 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-08-26 19:33:53 +1200
commit6522fd1027e086c2708757792f2c8e44d4597908 (patch)
tree67cd4bb5c1fa7c7bdcafe7e72117483d966fc03d /src/org/traccar/protocol
parentd78b41d36a84f5e0560c3474cdc1912def450971 (diff)
downloadtraccar-server-6522fd1027e086c2708757792f2c8e44d4597908.tar.gz
traccar-server-6522fd1027e086c2708757792f2c8e44d4597908.tar.bz2
traccar-server-6522fd1027e086c2708757792f2c8e44d4597908.zip
Fix KHD id decoding (fix #800)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/KhdProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/KhdProtocolDecoder.java b/src/org/traccar/protocol/KhdProtocolDecoder.java
index 9eb78c6ca..bd21592e1 100644
--- a/src/org/traccar/protocol/KhdProtocolDecoder.java
+++ b/src/org/traccar/protocol/KhdProtocolDecoder.java
@@ -41,7 +41,7 @@ public class KhdProtocolDecoder extends BaseProtocolDecoder {
int b3 = buf.readUnsignedByte(); if (b3 > 0x80) b3 -= 0x80;
int b4 = buf.readUnsignedByte();
String serialNumber = String.format("%02d%02d%02d%02d", b1, b2, b3, b4);
- return String.valueOf(Integer.valueOf(serialNumber));
+ return String.valueOf(Long.valueOf(serialNumber));
}
private static final int MSG_LOGIN = 0xB1;