aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Jt600ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Jt600ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Jt600ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Jt600ProtocolDecoder.java b/src/org/traccar/protocol/Jt600ProtocolDecoder.java
index 8a2be63fb..11932f8ce 100644
--- a/src/org/traccar/protocol/Jt600ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Jt600ProtocolDecoder.java
@@ -50,8 +50,8 @@ public class Jt600ProtocolDecoder extends GenericProtocolDecoder {
buf.readByte(); // header
// Get device by identifier
- int id = ChannelBufferTools.readHexInteger(buf, 10);
- position.setDeviceId(getDataManager().getDeviceByImei(String.valueOf(id)).getId());
+ String id = Long.valueOf(ChannelBufferTools.readHexString(buf, 10)).toString();
+ position.setDeviceId(getDataManager().getDeviceByImei(id).getId());
buf.readByte(); // protocol version + data type