aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-04-01 22:10:50 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-04-01 22:10:50 -0700
commit7b2c88d22efb7e6c5ec65b5c8823b5f55a5d3eb6 (patch)
treeeae7aa39fbea9829043e7d1dd021a77697d0688e /src/main/java/org/traccar/protocol
parent2199e490e0c47a267caab2795cdfe023aca1238d (diff)
downloadtrackermap-server-7b2c88d22efb7e6c5ec65b5c8823b5f55a5d3eb6.tar.gz
trackermap-server-7b2c88d22efb7e6c5ec65b5c8823b5f55a5d3eb6.tar.bz2
trackermap-server-7b2c88d22efb7e6c5ec65b5c8823b5f55a5d3eb6.zip
Support custom prefix
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java
index 53f04234d..428b69cd9 100644
--- a/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java
@@ -425,7 +425,7 @@ public class AtrackProtocolDecoder extends BaseProtocolDecoder {
private List<Position> decodeText(Channel channel, SocketAddress remoteAddress, String sentence) {
- int startIndex = 0;
+ int startIndex = -1;
for (int i = 0; i < 4; i++) {
startIndex = sentence.indexOf(',', startIndex + 1);
}