aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-02-27 10:18:07 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-02-27 10:18:07 +1300
commit53fa46d769168f4f97745412e3ff241843d0851b (patch)
tree41d79ac4b9027596cd3557047e32a87e587b7091 /src/org/traccar
parentd428a5b62531cfc02c8f20d35879b4ec1e383869 (diff)
downloadtrackermap-server-53fa46d769168f4f97745412e3ff241843d0851b.tar.gz
trackermap-server-53fa46d769168f4f97745412e3ff241843d0851b.tar.bz2
trackermap-server-53fa46d769168f4f97745412e3ff241843d0851b.zip
Correctly decode GPFID T55 messages
Diffstat (limited to 'src/org/traccar')
-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 9c47d1ab0..c6b2a670e 100644
--- a/src/org/traccar/protocol/T55ProtocolDecoder.java
+++ b/src/org/traccar/protocol/T55ProtocolDecoder.java
@@ -217,7 +217,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
} else if (sentence.startsWith("IMEI")) {
identify(sentence.substring(5, sentence.length()), channel, remoteAddress);
} else if (sentence.startsWith("$GPFID")) {
- if (identify(sentence.substring(6, sentence.length()), channel, remoteAddress) && position != null) {
+ if (identify(sentence.substring(7, sentence.length()), channel, remoteAddress) && position != null) {
Position position = this.position;
position.setDeviceId(getDeviceId());
this.position = null;