diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-15 09:07:10 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-15 09:07:10 +1300 |
commit | 6941836a13bc27192c8dc27c4171517333b83a7d (patch) | |
tree | 5e5fbf1ea8fbb15d191864a10a7f387398205e68 /src/org/traccar/protocol | |
parent | 55adf195c7ef696ca0dba493914b22f6fca377bd (diff) | |
download | trackermap-server-6941836a13bc27192c8dc27c4171517333b83a7d.tar.gz trackermap-server-6941836a13bc27192c8dc27c4171517333b83a7d.tar.bz2 trackermap-server-6941836a13bc27192c8dc27c4171517333b83a7d.zip |
Fix AutoFon45 identification (fix #1528)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/AutoFon45ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AutoFon45ProtocolDecoder.java b/src/org/traccar/protocol/AutoFon45ProtocolDecoder.java index 12020d161..8ff306c41 100644 --- a/src/org/traccar/protocol/AutoFon45ProtocolDecoder.java +++ b/src/org/traccar/protocol/AutoFon45ProtocolDecoder.java @@ -68,7 +68,7 @@ public class AutoFon45ProtocolDecoder extends BaseProtocolDecoder { byte[] bytes = new byte[19]; buf.readBytes(bytes); - String imei = ChannelBuffers.hexDump(ChannelBuffers.wrappedBuffer(bytes, 1, 16)).substring(1); + String imei = ChannelBuffers.hexDump(ChannelBuffers.wrappedBuffer(bytes, 1, 8)).substring(1); if (!identify(imei, channel)) { return null; } |