aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-01-16 18:16:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-01-16 18:16:22 +1300
commita027cac70cabb54328ace242c3f91ae91203a0e9 (patch)
treee9a92f1ecaad2f6969cb455aff41c431723d9d45 /src
parentf147091be957a99e55d9e7480831f81d1b202d7d (diff)
downloadtraccar-server-a027cac70cabb54328ace242c3f91ae91203a0e9.tar.gz
traccar-server-a027cac70cabb54328ace242c3f91ae91203a0e9.tar.bz2
traccar-server-a027cac70cabb54328ace242c3f91ae91203a0e9.zip
Fix T55 protocol (fix #119)
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/T55ProtocolDecoder.java2
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) {