diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-11 05:03:26 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-08-11 05:03:26 +1200 |
commit | 3562e0d927d539a1e9730c48ed376ee84ebc2b25 (patch) | |
tree | 19779517e1691fc92059be40d62fda81342f907c /src/org | |
parent | b82be4f9f3b4d1d6c345bc41d5c26aca03e369cb (diff) | |
download | traccar-server-3562e0d927d539a1e9730c48ed376ee84ebc2b25.tar.gz traccar-server-3562e0d927d539a1e9730c48ed376ee84ebc2b25.tar.bz2 traccar-server-3562e0d927d539a1e9730c48ed376ee84ebc2b25.zip |
Fix GL300VC decoding issue
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/Gl200TextProtocolDecoder.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java index 63adb1c70..37793a6ff 100644 --- a/src/org/traccar/protocol/Gl200TextProtocolDecoder.java +++ b/src/org/traccar/protocol/Gl200TextProtocolDecoder.java @@ -76,7 +76,7 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder { .number("(?:d),") // led .number("(?:d)?,") // gps on need .number("(?:d)?,") // gps antenna type - .number("(?:d),").optional() // gps antenna state + .number("(?:d)?,").optional() // gps antenna state .number("d{14},") // last fix time .groupBegin() .number("(d+),") // battery percentage @@ -388,10 +388,6 @@ public class Gl200TextProtocolDecoder extends BaseProtocolDecoder { } private Object decodeInf(Channel channel, SocketAddress remoteAddress, String sentence) { - - org.traccar.helper.PatternUtil.MatchResult matchResult = - org.traccar.helper.PatternUtil.checkPattern(PATTERN_INF.pattern(), sentence); - Parser parser = new Parser(PATTERN_INF, sentence); Position position = initPosition(parser, channel, remoteAddress); if (position == null) { |