diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-01-02 20:08:06 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-01-02 20:08:14 -0800 |
commit | 3254dbc4ade1e76b4351ec08656e7d8cbd399cdd (patch) | |
tree | 28046f26694e203d9b6c23265b29e093a49b2bfa | |
parent | 91c984a419a977b79f11722082bf553a435c664b (diff) | |
download | traccar-server-3254dbc4ade1e76b4351ec08656e7d8cbd399cdd.tar.gz traccar-server-3254dbc4ade1e76b4351ec08656e7d8cbd399cdd.tar.bz2 traccar-server-3254dbc4ade1e76b4351ec08656e7d8cbd399cdd.zip |
Improve L100 decoder
-rw-r--r-- | src/org/traccar/protocol/L100ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/L100ProtocolDecoder.java b/src/org/traccar/protocol/L100ProtocolDecoder.java index c4a4c0d58..fafab1c28 100644 --- a/src/org/traccar/protocol/L100ProtocolDecoder.java +++ b/src/org/traccar/protocol/L100ProtocolDecoder.java @@ -142,7 +142,7 @@ public class L100ProtocolDecoder extends BaseProtocolDecoder { } else { return decodeObdLocation(channel, remoteAddress, sentence); } - } else if (sentence.startsWith("ATL,") || sentence.substring(0, 1).matches("[NPT]")) { + } else if (sentence.contains("$GPRMC")) { return decodeNew(channel, remoteAddress, sentence); } else { return decodeNormal(channel, remoteAddress, sentence); |