From 7b2c88d22efb7e6c5ec65b5c8823b5f55a5d3eb6 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 1 Apr 2020 22:10:50 -0700 Subject: Support custom prefix --- src/main/java/org/traccar/protocol/AtrackProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') 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 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); } -- cgit v1.2.3