diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-01-02 20:11:35 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-01-02 20:11:35 -0800 |
commit | e4e06e879652d8c61606843e3f7959ae5a1ec2a2 (patch) | |
tree | fffd2cd208fd3e7d5543941d85bcee42762511e3 /src/org/traccar/protocol | |
parent | 3254dbc4ade1e76b4351ec08656e7d8cbd399cdd (diff) | |
download | traccar-server-e4e06e879652d8c61606843e3f7959ae5a1ec2a2.tar.gz traccar-server-e4e06e879652d8c61606843e3f7959ae5a1ec2a2.tar.bz2 traccar-server-e4e06e879652d8c61606843e3f7959ae5a1ec2a2.zip |
Revert "Improve L100 decoder"
This reverts commit 3254dbc
Diffstat (limited to 'src/org/traccar/protocol')
-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 fafab1c28..c4a4c0d58 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.contains("$GPRMC")) { + } else if (sentence.startsWith("ATL,") || sentence.substring(0, 1).matches("[NPT]")) { return decodeNew(channel, remoteAddress, sentence); } else { return decodeNormal(channel, remoteAddress, sentence); |