From c3d71d9b2d49ef70a5a02c7b26bdc0cae9fde77b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 30 Sep 2015 11:54:25 +1300 Subject: Fix FlexTrack logon decoding --- src/org/traccar/protocol/FlextrackProtocolDecoder.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/FlextrackProtocolDecoder.java b/src/org/traccar/protocol/FlextrackProtocolDecoder.java index e55324db4..0622cbc3a 100644 --- a/src/org/traccar/protocol/FlextrackProtocolDecoder.java +++ b/src/org/traccar/protocol/FlextrackProtocolDecoder.java @@ -77,12 +77,10 @@ public class FlextrackProtocolDecoder extends BaseProtocolDecoder { String sentence = (String) msg; - String x = PatternUtil.checkPattern(pattern.pattern(), sentence); - if (sentence.contains("LOGON")) { Matcher parser = patternLogon.matcher(sentence); - if (parser.matches()) { + if (!parser.matches()) { return null; } -- cgit v1.2.3