From da39a23c3811c139b124f708fb097772b63b5c3d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 23 Nov 2013 12:58:00 +1300 Subject: Fix xexun decoder (fix #460) --- src/org/traccar/protocol/XexunProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/XexunProtocolDecoder.java b/src/org/traccar/protocol/XexunProtocolDecoder.java index bc92e4fb6..7e62569c4 100644 --- a/src/org/traccar/protocol/XexunProtocolDecoder.java +++ b/src/org/traccar/protocol/XexunProtocolDecoder.java @@ -34,7 +34,7 @@ public class XexunProtocolDecoder extends BaseProtocolDecoder { super(serverManager); } - static private Pattern pattern = Pattern.compile( + private static final Pattern pattern = Pattern.compile( "GPRMC," + "(\\d{2})(\\d{2})(\\d{2}).(\\d+)," + // Time (HHMMSS.SSS) "([AV])," + // Validity @@ -45,7 +45,7 @@ public class XexunProtocolDecoder extends BaseProtocolDecoder { "(\\d+\\.\\d+)," + // Speed "(\\d+\\.\\d+)?," + // Course "(\\d{2})(\\d{2})(\\d{2})," + // Date (DDMMYY) - ".*imei:" + + ".*\r?\n?.*imei:" + "(\\d+),"); // IMEI @Override -- cgit v1.2.3