aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-01-02 20:11:35 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-01-02 20:11:35 -0800
commite4e06e879652d8c61606843e3f7959ae5a1ec2a2 (patch)
treefffd2cd208fd3e7d5543941d85bcee42762511e3 /src/org/traccar/protocol
parent3254dbc4ade1e76b4351ec08656e7d8cbd399cdd (diff)
downloadtraccar-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.java2
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);