From e4e06e879652d8c61606843e3f7959ae5a1ec2a2 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 2 Jan 2019 20:11:35 -0800 Subject: Revert "Improve L100 decoder" This reverts commit 3254dbc --- src/org/traccar/protocol/L100ProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar') 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); -- cgit v1.2.3