From 6148a3c2d873f5490cc4a55bc7e326c7d293405b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 26 Sep 2015 09:55:28 +1200 Subject: Fix Aquila protocol decoder --- src/org/traccar/protocol/AquilaProtocolDecoder.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/AquilaProtocolDecoder.java b/src/org/traccar/protocol/AquilaProtocolDecoder.java index 67ada82b2..8430165ff 100644 --- a/src/org/traccar/protocol/AquilaProtocolDecoder.java +++ b/src/org/traccar/protocol/AquilaProtocolDecoder.java @@ -22,7 +22,6 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; import org.jboss.netty.channel.Channel; import org.traccar.BaseProtocolDecoder; -import org.traccar.helper.PatternUtil; import org.traccar.helper.UnitsConverter; import org.traccar.model.Event; import org.traccar.model.Position; @@ -35,7 +34,7 @@ public class AquilaProtocolDecoder extends BaseProtocolDecoder { private static final Pattern pattern = Pattern.compile( "\\$\\$" + - "CLIENT_[^,]+," + // IMEI + "[^,]+," + // Client "(\\d+)," + // Device serial number "(\\d+)," + // Event "(-?\\d+\\.\\d+)," + // Latitude @@ -66,8 +65,6 @@ public class AquilaProtocolDecoder extends BaseProtocolDecoder { throws Exception { String sentence = (String) msg; - - String r = PatternUtil.checkPattern(pattern.pattern(), sentence); Matcher parser = pattern.matcher(sentence); if (!parser.matches()) { -- cgit v1.2.3