diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-01-16 18:16:22 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-01-16 18:16:22 +1300 |
commit | a027cac70cabb54328ace242c3f91ae91203a0e9 (patch) | |
tree | e9a92f1ecaad2f6969cb455aff41c431723d9d45 /src/org/traccar/protocol/T55ProtocolDecoder.java | |
parent | f147091be957a99e55d9e7480831f81d1b202d7d (diff) | |
download | trackermap-server-a027cac70cabb54328ace242c3f91ae91203a0e9.tar.gz trackermap-server-a027cac70cabb54328ace242c3f91ae91203a0e9.tar.bz2 trackermap-server-a027cac70cabb54328ace242c3f91ae91203a0e9.zip |
Fix T55 protocol (fix #119)
Diffstat (limited to 'src/org/traccar/protocol/T55ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/T55ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/T55ProtocolDecoder.java b/src/org/traccar/protocol/T55ProtocolDecoder.java index 8903bf3e1..76f43e2cf 100644 --- a/src/org/traccar/protocol/T55ProtocolDecoder.java +++ b/src/org/traccar/protocol/T55ProtocolDecoder.java @@ -70,7 +70,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder { // Detect device ID if (sentence.contains("$PGID")) { - String imei = sentence.substring(6, 6 + 15); + String imei = sentence.substring(6, sentence.length() - 3); try { deviceId = getDataManager().getDeviceByImei(imei).getId(); } catch(Exception error) { |