aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-01-02 20:08:06 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-01-02 20:08:14 -0800
commit3254dbc4ade1e76b4351ec08656e7d8cbd399cdd (patch)
tree28046f26694e203d9b6c23265b29e093a49b2bfa /src/org
parent91c984a419a977b79f11722082bf553a435c664b (diff)
downloadtraccar-server-3254dbc4ade1e76b4351ec08656e7d8cbd399cdd.tar.gz
traccar-server-3254dbc4ade1e76b4351ec08656e7d8cbd399cdd.tar.bz2
traccar-server-3254dbc4ade1e76b4351ec08656e7d8cbd399cdd.zip
Improve L100 decoder
Diffstat (limited to 'src/org')
-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 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);