aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Tr20ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Tr20ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Tr20ProtocolDecoder.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/Tr20ProtocolDecoder.java b/src/org/traccar/protocol/Tr20ProtocolDecoder.java
index 3a05fadd8..fd6ef2d61 100644
--- a/src/org/traccar/protocol/Tr20ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Tr20ProtocolDecoder.java
@@ -22,7 +22,6 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.jboss.netty.channel.Channel;
-import org.jboss.netty.channel.ChannelHandlerContext;
import org.traccar.BaseProtocolDecoder;
import org.traccar.helper.UnitsConverter;
@@ -35,10 +34,10 @@ public class Tr20ProtocolDecoder extends BaseProtocolDecoder {
}
static private Pattern patternPing = Pattern.compile(
- "\\%\\%[^,]+,(\\d+)");
+ "%%[^,]+,(\\d+)");
static private Pattern patternData = Pattern.compile(
- "\\%\\%" +
+ "%%" +
"([^,]+)," + // Id
"([AL])," + // Validity
"(\\d{2})(\\d{2})(\\d{2})" + // Date (YYMMDD)